Method: SemanticallyTaggable::TagList#remove
- Defined in:
- lib/semantically_taggable/tag_list.rb
#remove(*names) ⇒ Object
Remove specific tags from the tag_list. Use the :parse
option to add an unparsed tag string.
Example:
tag_list.remove("Sad", "Lonely")
tag_list.remove("Sad, Lonely", :parse => true)
54 55 56 57 58 |
# File 'lib/semantically_taggable/tag_list.rb', line 54 def remove(*names) (names) delete_if { |name| names.include?(name) } self end |