Module: Pendaxes::Defaults

Included in:
Detector, Notificator, Reporter, Workspace
Defined in:
lib/pendaxes/defaults.rb

Instance Method Summary collapse

Instance Method Details

#defaults(h = nil) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/pendaxes/defaults.rb', line 3

def defaults(h=nil)
  default_defaults = self.superclass.respond_to?(:defaults) ? self.superclass.defaults : Hashr.new
  @defaults ||= default_defaults
  if h
    @defaults = default_defaults.merge(h)
  end
  @defaults
end