Class: Bread::ConfigCommand
- Inherits:
-
Object
- Object
- Bread::ConfigCommand
- Defined in:
- lib/bread/commands/config_command.rb
Instance Attribute Summary collapse
-
#crumb_definitions ⇒ Object
readonly
Returns the value of attribute crumb_definitions.
Instance Method Summary collapse
-
#initialize ⇒ ConfigCommand
constructor
A new instance of ConfigCommand.
- #key(key_name, &block) ⇒ Object
Constructor Details
#initialize ⇒ ConfigCommand
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_definitions ⇒ Object (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 |