class WhirledPeas::Command::Debug

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

Public Class Methods

description() click to toggle source
# File lib/whirled_peas/command/debug.rb, line 7
def self.description
  'Print template tree for specified frame'
end

Public Instance Methods

start() click to toggle source
Calls superclass method
# 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