Class: Vanilla::SnipReferenceParser
- Inherits:
-
Object
- Object
- Vanilla::SnipReferenceParser
- Defined in:
- lib/vanilla/snip_reference_parser.rb
Defined Under Namespace
Classes: ParseError, Reference, SnipParser, SnipTransform
Instance Method Summary collapse
Instance Method Details
#parse(string) ⇒ Object
23 24 25 26 27 |
# File 'lib/vanilla/snip_reference_parser.rb', line 23 def parse(string) Reference.new(SnipTransform.new.apply(SnipParser.new.parse(string))) rescue Parslet::ParseFailed raise ParseError end |