Class: Lua::Literal::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- Lua::Literal::Parser
- Defined in:
- lib/lua/literal/parser.rb
Overview
Instance Method Summary collapse
-
#parse(lua_literal) ⇒ Hash, ...
Parses the given argument as a Lua literal expression.
Instance Method Details
#parse(lua_literal) ⇒ Hash, ...
Parses the given argument as a Lua literal expression
See README for supported syntax.
196 197 198 199 200 |
# File 'lib/lua/literal/parser.rb', line 196 def parse(lua_literal) super(lua_literal) rescue Parslet::ParseFailed raise Lua::Literal::ParseError end |