module Mlc

Constants

VERSION

Public Class Methods

escape_str(str) click to toggle source
# File lib/mlc.rb, line 7
def self.escape_str(str)
  str.gsub('\\', '\\\\').gsub("'", "\\'")
end
prepare_args(indent, options, state, args) click to toggle source
# File lib/mlc.rb, line 11
def self.prepare_args(indent, options, state, args)
  "(#{args.map {|el| el.to_lua(indent + 1, options, state)}.join ', '})"
end