Method: SemanticallyTaggable::TagList#add
- Defined in:
- lib/semantically_taggable/tag_list.rb
#add(*names) ⇒ Object
Add tags to the tag_list. Duplicate or blank tags will be ignored. Use the :parse
option to add an unparsed tag string.
Example:
tag_list.add("Fun", "Happy")
tag_list.add("Fun, Happy", :parse => true)
40 41 42 43 44 45 |
# File 'lib/semantically_taggable/tag_list.rb', line 40 def add(*names) (names) concat(names) clean! self end |