Class: ReactiveTags::MethodTagger
- Defined in:
- lib/volt/reactive/reactive_tags.rb
Instance Attribute Summary collapse
-
#method_tags ⇒ Object
readonly
Returns the value of attribute method_tags.
Instance Method Summary collapse
- #destructive!(&block) ⇒ Object
-
#initialize ⇒ MethodTagger
constructor
A new instance of MethodTagger.
- #pass_reactive! ⇒ Object
Constructor Details
#initialize ⇒ MethodTagger
Returns a new instance of MethodTagger.
13 14 15 |
# File 'lib/volt/reactive/reactive_tags.rb', line 13 def initialize @method_tags = MethodTags.new end |
Instance Attribute Details
#method_tags ⇒ Object (readonly)
Returns the value of attribute method_tags.
11 12 13 |
# File 'lib/volt/reactive/reactive_tags.rb', line 11 def @method_tags end |
Instance Method Details
#destructive!(&block) ⇒ Object
17 18 19 |
# File 'lib/volt/reactive/reactive_tags.rb', line 17 def destructive!(&block) @method_tags.destructive = block || true end |
#pass_reactive! ⇒ Object
21 22 23 |
# File 'lib/volt/reactive/reactive_tags.rb', line 21 def pass_reactive! @method_tags.pass_reactive = true end |