Class: Benny::Configuration::EnvironmentEntry
- Inherits:
-
Object
- Object
- Benny::Configuration::EnvironmentEntry
- Defined in:
- lib/benny/configuration.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #gemfile(path = nil) ⇒ Object
-
#initialize(name, &block) ⇒ EnvironmentEntry
constructor
A new instance of EnvironmentEntry.
Constructor Details
#initialize(name, &block) ⇒ EnvironmentEntry
Returns a new instance of EnvironmentEntry.
10 11 12 13 |
# File 'lib/benny/configuration.rb', line 10 def initialize(name, &block) @name = name instance_exec(&block) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/benny/configuration.rb', line 8 def name @name end |
Instance Method Details
#gemfile(path = nil) ⇒ Object
15 16 17 18 |
# File 'lib/benny/configuration.rb', line 15 def gemfile(path = nil) @gemfile = path unless path.nil? @gemfile end |