Module: Dub

Defined in:
lib/dub.rb,
lib/dub/lua.rb,
lib/dub/group.rb,
lib/dub/klass.rb,
lib/dub/klass.rb,
lib/dub/parser.rb,
lib/dub/version.rb,
lib/dub/argument.rb,
lib/dub/function.rb,
lib/dub/generator.rb,
lib/dub/namespace.rb,
lib/dub/opts_parser.rb,
lib/dub/lua/class_gen.rb,
lib/dub/function_group.rb,
lib/dub/lua/function_gen.rb,
lib/dub/entities_unescape.rb,
lib/dub/lua/namespace_gen.rb,
lib/dub/member_extraction.rb

Defined Under Namespace

Modules: EntitiesUnescape, Lua, MemberExtraction, OptsParser Classes: Argument, Function, FunctionGroup, Generator, Group, Klass, Namespace, Parser

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.loggerObject


16
17
18
19
20
21
22
# File 'lib/dub.rb', line 16

def self.logger
  @@logger ||= begin
    logger = Logger.new(STDERR)
    logger.level == Logger::INFO
    logger
  end
end

.logger=(logger) ⇒ Object


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

def self.logger=(logger)
  @@logger = logger
end

.parse(filename) ⇒ Object


24
25
26
# File 'lib/dub.rb', line 24

def self.parse(filename)
  Dub::Parser.new(filename)
end