Method: Filigree::Configuration::ClassMethods#default
- Defined in:
- lib/filigree/configuration.rb
#default(val = nil, &block) ⇒ void
This method returns an undefined value.
Sets the default value for the next command. If a block is provided it will be used. If not, the val parameter will be.
232 233 234 |
# File 'lib/filigree/configuration.rb', line 232 def default(val = nil, &block) @next_default = block ? block : val end |