Sha256: 524af484de8d5f310bdd572a9c28bd1ac6d391f9792ef64237135747539ba067
Contents?: true
Size: 727 Bytes
Versions: 5
Compression:
Stored size: 727 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require_relative '../base/subcmd' class Trepan::Subcommand::ShowConfirm < Trepan::ShowBoolSubcommand unless defined?(HELP) Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = "Show confirm potentially dangerous operations setting" MIN_ABBREV = 'co'.size end end if __FILE__ == $0 # Demo it. require_relative '../../mock' # FIXME: DRY the below code dbgr, cmd = MockDebugger::setup('show') subcommand = Trepan::Subcommand::ShowConfirm.new(cmd) testcmdMgr = Trepan::Subcmd.new(subcommand) subcommand.run_show_bool name = File.confirm(__FILE__, '.rb') subcommand.summary_help(name) end
Version data entries
5 entries across 5 versions & 1 rubygems