Method: Bgem::Config#initialize

Defined in:
lib/bgem.rb

#initialize(config_file) ⇒ Config

Returns a new instance of Config.



33
34
35
36
37
38
39
# File 'lib/bgem.rb', line 33

def initialize config_file
  @entry, @output, @scope = SOURCE_FILE, 'output.rb', nil
  DSL.new self, (IO.read config_file)

  @dir = Pathname File.dirname config_file
  define_macros
end