Sha256: 3d25e5441856a5e339cf7d8f5d191844b250184b223387c048d58740df371d0d
Contents?: true
Size: 697 Bytes
Versions: 7
Compression:
Stored size: 697 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require_relative '../base/subcmd' class Trepan::Subcommand::SetAbbrev < Trepan::SetBoolSubcommand unless defined?(HELP) HELP = "Set to allow unique abbreviations of commands" IN_LIST = true MIN_ABBREV = 'ab'.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::SetAbbrev, false) cmd.run(cmd.prefix + ['off']) cmd.run(cmd.prefix + ['ofn']) cmd.run(cmd.prefix) puts cmd.save_command end
Version data entries
7 entries across 7 versions & 1 rubygems