Class: ActsAsTaggableOn::GenericParser
- Inherits:
-
Object
- Object
- ActsAsTaggableOn::GenericParser
- Defined in:
- lib/acts_as_taggable_on/generic_parser.rb
Overview
Returns a new TagList using the given tag string.
Example: tag_list = ActsAsTaggableOn::GenericParser.new.parse(“One , Two, Three”) tag_list # [“One”, “Two”, “Three”]
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(tag_list) ⇒ GenericParser
constructor
A new instance of GenericParser.
- #parse ⇒ Object
Constructor Details
#initialize(tag_list) ⇒ GenericParser
Returns a new instance of GenericParser.
9 10 11 |
# File 'lib/acts_as_taggable_on/generic_parser.rb', line 9 def initialize(tag_list) @tag_list = tag_list end |