Class: Benny::Configuration::EnvironmentEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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