Class: ParamsDebugger::Debugger
- Inherits:
-
Object
- Object
- ParamsDebugger::Debugger
- Defined in:
- lib/params_debugger/debugger.rb
Instance Method Summary collapse
-
#initialize(output, args) ⇒ Debugger
constructor
A new instance of Debugger.
- #start ⇒ Object
Constructor Details
#initialize(output, args) ⇒ Debugger
Returns a new instance of Debugger.
6 7 8 9 |
# File 'lib/params_debugger/debugger.rb', line 6 def initialize output, args @output = output @args = args end |
Instance Method Details
#start ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/params_debugger/debugger.rb', line 11 def start actions.each do |action| if plain_version? @output.puts parameters action else @output.puts humanize(parameters action) end end end |