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.

Parameters:

  • val (Object) (defaults to: nil)

    Default value

  • block (Proc)

    Default value generator block



232
233
234
# File 'lib/filigree/configuration.rb', line 232

def default(val = nil, &block)
	@next_default = block ? block : val
end