Class: Bread::ConfigCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/bread/commands/config_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigCommand

Returns a new instance of ConfigCommand.



6
7
8
# File 'lib/bread/commands/config_command.rb', line 6

def initialize
  @crumb_definitions = {}
end

Instance Attribute Details

#crumb_definitionsObject (readonly)

Returns the value of attribute crumb_definitions.



4
5
6
# File 'lib/bread/commands/config_command.rb', line 4

def crumb_definitions
  @crumb_definitions
end

Instance Method Details

#key(key_name, &block) ⇒ Object



10
11
12
# File 'lib/bread/commands/config_command.rb', line 10

def key(key_name, &block)
  @crumb_definitions[key_name] = block
end