Class: WhirledPeas::Settings::Debugger
- Inherits:
-
Object
- Object
- WhirledPeas::Settings::Debugger
- Defined in:
- lib/whirled_peas/settings/debugger.rb
Instance Method Summary collapse
- #debug(indent = '') ⇒ Object
-
#initialize(settings) ⇒ Debugger
constructor
A new instance of Debugger.
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 |