Skip to content

Instantly share code, notes, and snippets.

@TheNotary
Created March 14, 2013 22:39
Show Gist options
  • Save TheNotary/5165882 to your computer and use it in GitHub Desktop.
Save TheNotary/5165882 to your computer and use it in GitHub Desktop.
def self.parse(text, tags = {})
tags = @@tags if tags == {}
@tag_collection = TagCollection.new(text, tags)
@tag_collection.process_text
if @tag_collection.invalid?
@tag_collection.errors
else
true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment