processor/command/info_subcmd/locals.rb in trepanning-0.0.9 vs processor/command/info_subcmd/locals.rb in trepanning-0.1.0

- old
+ new

@@ -1,18 +1,17 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net> +# Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require 'columnize' require_relative '../base/subcmd' require_relative '../../../app/frame' class Trepan::Subcommand::InfoLocals < Trepan::Subcommand unless defined?(HELP) + Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = 'Show local variables of the current stack frame' MAX_ARGS = 1 MIN_ABBREV = 'lo'.size - NAME = File.basename(__FILE__, '.rb') NEED_STACK = true - PREFIX = %w(info locals) end include Trepan::Frame def get_local_names iseq = @proc.frame.iseq