Class: WhirledPeas::Settings::Debugger

Inherits:
Object
  • Object
show all
Defined in:
lib/whirled_peas/settings/debugger.rb

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ Debugger

Returns a new instance of Debugger.



11
12
13
# File 'lib/whirled_peas/settings/debugger.rb', line 11

def initialize(settings)
  @settings = settings
end

Instance Method Details

#debug(indent = '') ⇒ Object



15
16
17
18
19
# File 'lib/whirled_peas/settings/debugger.rb', line 15

def debug(indent='')
  values = non_default_values(indent + '  ')
  details = values.length > 0 ? values.join("\n") : "#{indent}  <default>"
  "#{indent}#{settings.class}\n#{details}"
end