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
107 108 109 |
# File 'lib/reflex/helper.rb', line 107 def () untag *.to_a end |
#tag(*tags) ⇒ Object
95 96 97 |
# File 'lib/reflex/helper.rb', line 95 def tag (*) .each {|tag| add_tag tag} end |
#tag=(*tags) ⇒ Object Also known as:
88 89 90 91 |
# File 'lib/reflex/helper.rb', line 88 def tag= (*) tag *.flatten end |
#tags ⇒ Object
103 104 105 |
# File 'lib/reflex/helper.rb', line 103 def () to_enum :each_tag end |
#untag(*tags) ⇒ Object
99 100 101 |
# File 'lib/reflex/helper.rb', line 99 def untag (*) .each {|tag| remove_tag tag} end |