Class: Teckel::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/teckel/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_constructor()Class (readonly)

The default constructor method for input, output and error class (default: :[])

Returns:

  • (Class)

    The Output class



# File 'lib/teckel/config.rb', line 7

Class Method Details

.default_constructor(sym_or_proc) ⇒ Symbol, #call

Set the default constructor method for input, output and error class

defaults to :[]

Parameters:

  • sym_or_proc (Symbol, #call)

    The method name on the input, output and error class or a callable which accepts the input, output or error

Returns:

  • (Symbol, #call)


21
22
23
24
25
# File 'lib/teckel/config.rb', line 21

def default_constructor(sym_or_proc = nil)
  return @default_constructor if sym_or_proc.nil?

  @default_constructor = sym_or_proc
end