Sha256: 922a8e436b0df31be44421e4286fef724a233d071bdcd52ad5621699e3c228d4

Contents?: true

Size: 793 Bytes

Versions: 6

Compression:

Stored size: 793 Bytes

Contents

# -*- coding: utf-8 -*-
# Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net>
require_relative '../../base/subsubcmd'

class Trepan::SubSubcommand::ShowAutoEval < Trepan::ShowBoolSubSubcommand
  unless defined?(HELP)
    HELP = "set auto eval [ON|OFF]

Set this on if you want things that don't look like debugger command to be eval'd
as a string."

    MIN_ABBREV   = 'ev'.size
    NAME         = File.basename(__FILE__, '.rb')
    PREFIX       = %w(show auto eval)
    SHORT_HELP = "Show evaluation of unrecognized debugger commands"
  end

end

if __FILE__ == $0
  # Demo it.
  require_relative '../../../mock'
  require_relative '../auto'
  cmd = MockDebugger::subsub_setup(Trepan::SubSubcommand::ShowAuto,
                                   Trepan::SubSubcommand::ShowAutoEval)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
trepanning-0.1.3 processor/command/show_subcmd/auto_subcmd/eval.rb
trepanning-0.1.2 processor/command/show_subcmd/auto_subcmd/eval.rb
trepanning-0.1.1 processor/command/show_subcmd/auto_subcmd/eval.rb
trepanning-0.1.0 processor/command/show_subcmd/auto_subcmd/eval.rb
trepanning-0.0.9 processor/command/show_subcmd/auto_subcmd/eval.rb
trepanning-0.0.8 processor/command/show_subcmd/auto_subcmd/eval.rb