class Lua::Literal::Converter

Public Class Methods

new() click to toggle source
# File lib/lua/literal/converter.rb, line 9
def initialize
  @parser = Lua::Literal::Parser.new
  @transform = Lua::Literal::Transform.new
end

Public Instance Methods

convert(lua_literal) click to toggle source
# File lib/lua/literal/converter.rb, line 14
def convert(lua_literal)
  @transform.apply(@parser.parse(lua_literal))
end