Class: Bgem::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/bgem.rb

Defined Under Namespace

Classes: DSL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_file) ⇒ Config

Returns a new instance of Config.



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

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

Instance Attribute Details

#entryObject

Returns the value of attribute entry.



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

def entry
  @entry
end

#outputObject

Returns the value of attribute output.



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

def output
  @output
end

#scopeObject

Returns the value of attribute scope.



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

def scope
  @scope
end