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
80 81 82 |
# File 'lib/reflex/helper.rb', line 80 def () untag(*.to_a) end |
#tag(*tags) ⇒ Object
68 69 70 |
# File 'lib/reflex/helper.rb', line 68 def tag(*) .each {|tag| add_tag tag} end |
#tag=(*tags) ⇒ Object Also known as:
61 62 63 64 |
# File 'lib/reflex/helper.rb', line 61 def tag=(*) tag(*.flatten) end |
#tags ⇒ Object
76 77 78 |
# File 'lib/reflex/helper.rb', line 76 def () to_enum :each_tag end |
#untag(*tags) ⇒ Object
72 73 74 |
# File 'lib/reflex/helper.rb', line 72 def untag(*) .each {|tag| remove_tag tag} end |