Sha256: c39355c975fc78e2f1cd33116829ab57e6bc40e2aea5c9ac62770db4e9cbb55a
Contents?: true
Size: 755 Bytes
Versions: 15
Compression:
Stored size: 755 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require 'rubygems'; require 'require_relative' require_relative '../base/subcmd' class Trepan::Subcommand::SetBasename < Trepan::SetBoolSubcommand unless defined?(HELP) HELP = "Set to show only file basename in showing file names" IN_LIST = true MIN_ABBREV = 'ba'.size Trepanning::Subcommand.set_name_prefix(__FILE__, self) end end if __FILE__ == $0 # Demo it. $0 = __FILE__ + 'notagain' # So we don't run this again require_relative '../../mock' cmd = MockDebugger::sub_setup(Trepan::Subcommand::SetBasename, false) cmd.run(cmd.prefix + ['off']) cmd.run(cmd.prefix + ['ofn']) cmd.run(cmd.prefix) puts cmd.save_command end
Version data entries
15 entries across 15 versions & 2 rubygems