Module: Reflex::HasTags
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
92 93 94 |
# File 'lib/reflex/helper.rb', line 92 def () untag(*.to_a) end |
#tag(*tags) ⇒ Object
80 81 82 |
# File 'lib/reflex/helper.rb', line 80 def tag(*) .each {|tag| add_tag tag} end |
#tag=(*tags) ⇒ Object Also known as:
73 74 75 76 |
# File 'lib/reflex/helper.rb', line 73 def tag=(*) tag(*.flatten) end |
#tags ⇒ Object
88 89 90 |
# File 'lib/reflex/helper.rb', line 88 def () to_enum :each_tag end |
#untag(*tags) ⇒ Object
84 85 86 |
# File 'lib/reflex/helper.rb', line 84 def untag(*) .each {|tag| remove_tag tag} end |