Module: HoTModuLe::Petite

Defined in:
lib/hot_module/petite.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ void

This method returns an undefined value.

Parameters:

  • klass (Class)


9
10
11
12
13
14
15
# File 'lib/hot_module/petite.rb', line 9

def self.included(klass)
  klass.attribute_binding "v-for", :_petite_for_binding, only: :template
  klass.attribute_binding "v-text", :_petite_text_binding
  klass.attribute_binding "v-html", :_petite_html_binding
  klass.attribute_binding "v-bind", :_petite_bound_attribute
  klass.attribute_binding %r{^:}, :_petite_bound_attribute
end