Module: Dub::Lua

Defined in:
lib/dub/lua.rb,
lib/dub/lua/class_gen.rb,
lib/dub/lua/function_gen.rb,
lib/dub/lua/namespace_gen.rb

Defined Under Namespace

Classes: ClassGen, FunctionGen, NamespaceGen

Constant Summary collapse

SELF =
"self"

Class Method Summary collapse

Class Method Details

.bind(object) ⇒ Object


19
20
21
22
# File 'lib/dub/lua.rb', line 19

def self.bind(object)
  object.bind(self)
  object
end

.class_generatorObject


11
12
13
# File 'lib/dub/lua.rb', line 11

def self.class_generator
  @@class_generator ||= Dub::Lua::ClassGen.new
end

.function_generatorObject


7
8
9
# File 'lib/dub/lua.rb', line 7

def self.function_generator
  @@function_generator ||= Dub::Lua::FunctionGen.new
end

.namespace_generatorObject


15
16
17
# File 'lib/dub/lua.rb', line 15

def self.namespace_generator
  @@namespace_generator ||= Dub::Lua::NamespaceGen.new
end