Class: ParamsDebugger::Debugger

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

Instance Method Summary collapse

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

#startObject



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? options
      @output.puts parameters action
    else
      @output.puts humanize(parameters action)
    end
  end
end