Class: WhirledPeas::Command::Debug

Inherits:
FrameCommand
  • Object
show all
Defined in:
lib/whirled_peas/command/debug.rb

Overview

Display the template tree for a single frame with the specified arguments.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.descriptionObject



7
8
9
# File 'lib/whirled_peas/command/debug.rb', line 7

def self.description
  'Print template tree for specified frame'
end

Instance Method Details

#startObject



11
12
13
14
15
16
17
18
# File 'lib/whirled_peas/command/debug.rb', line 11

def start
  super

  require 'whirled_peas/graphics/debugger'

  template = config.template_factory.build(frame, frame_args)
  puts Graphics::Debugger.new(template).debug
end