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
95 96 97 |
# File 'lib/reflex/helper.rb', line 95 def () untag *.to_a end |
#tag(*tags) ⇒ Object
83 84 85 |
# File 'lib/reflex/helper.rb', line 83 def tag (*) .each {|tag| add_tag tag} end |
#tag=(*tags) ⇒ Object Also known as:
76 77 78 79 |
# File 'lib/reflex/helper.rb', line 76 def tag= (*) tag *.flatten end |
#tags ⇒ Object
91 92 93 |
# File 'lib/reflex/helper.rb', line 91 def () to_enum :each_tag end |
#untag(*tags) ⇒ Object
87 88 89 |
# File 'lib/reflex/helper.rb', line 87 def untag (*) .each {|tag| remove_tag tag} end |