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.
11 12 13 |
# File 'lib/acts-as-taggable-on/generic_parser.rb', line 11 def initialize(tag_list) @tag_list = tag_list end |