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



251
252
253
# File 'lib/filigree/configuration.rb', line 251

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