Module: Reflex::HasTags
- Included in:
- Constraint, Selector, Shape, Style, View
- Defined in:
- lib/reflex/helper.rb
Instance Method Summary collapse
- #clear_tags ⇒ Object
- #tag(*tags) ⇒ Object
- #tag=(*tags) ⇒ Object (also: #tags=)
- #tags ⇒ Object
- #untag(*tags) ⇒ Object
Instance Method Details
#clear_tags ⇒ Object
108 109 110 |
# File 'lib/reflex/helper.rb', line 108 def () untag(*.to_a) end |
#tag(*tags) ⇒ Object
96 97 98 |
# File 'lib/reflex/helper.rb', line 96 def tag(*) .each {|tag| add_tag tag} end |
#tag=(*tags) ⇒ Object Also known as:
89 90 91 92 |
# File 'lib/reflex/helper.rb', line 89 def tag=(*) tag(*.flatten) end |
#tags ⇒ Object
104 105 106 |
# File 'lib/reflex/helper.rb', line 104 def () to_enum :each_tag end |
#untag(*tags) ⇒ Object
100 101 102 |
# File 'lib/reflex/helper.rb', line 100 def untag(*) .each {|tag| remove_tag tag} end |