Module: Rufus::Lua

Defined in:
lib/immunio/rufus_lua_ext/utils.rb,
lib/immunio/rufus_lua_ext/table.rb,
lib/immunio/rufus_lua_ext/state.rb,
lib/immunio/rufus_lua_ext/ref.rb

Defined Under Namespace

Modules: StateMixin Classes: Function, HashWithNilKeyError, Ref, State, Table

Class Method Summary collapse

Class Method Details

.to_lua_s_with_symbol(o) ⇒ Object Also known as: to_lua_s



2
3
4
5
6
7
8
# File 'lib/immunio/rufus_lua_ext/utils.rb', line 2

def self.to_lua_s_with_symbol(o)
  case o
  when Symbol then o.to_s.inspect
  else
    to_lua_s_without_symbol o
  end
end