Class: Bgem::Config
- Inherits:
-
Object
- Object
- Bgem::Config
- Defined in:
- lib/bgem.rb
Defined Under Namespace
Classes: DSL
Instance Attribute Summary collapse
-
#entry ⇒ Object
Returns the value of attribute entry.
-
#output ⇒ Object
Returns the value of attribute output.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(config_file) ⇒ Config
constructor
A new instance of Config.
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
#entry ⇒ Object
Returns the value of attribute entry.
24 25 26 |
# File 'lib/bgem.rb', line 24 def entry @entry end |
#output ⇒ Object
Returns the value of attribute output.
24 25 26 |
# File 'lib/bgem.rb', line 24 def output @output end |
#scope ⇒ Object
Returns the value of attribute scope.
24 25 26 |
# File 'lib/bgem.rb', line 24 def scope @scope end |