We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a266fd2 commit 5b6f03fCopy full SHA for 5b6f03f
lib/ruby-debug-ide/command.rb
@@ -1,8 +1,9 @@
1
require 'ruby-debug-ide/helper'
2
+require 'delegate'
3
4
module Debugger
5
- class Command # :nodoc:
6
+ class Command < SimpleDelegator # :nodoc:
7
SubcmdStruct=Struct.new(:name, :min, :short_help, :long_help) unless
8
defined?(SubcmdStruct)
9
@@ -67,6 +68,7 @@ def options
67
68
69
def initialize(state, printer)
70
@state, @printer = state, printer
71
+ super @printer
72
end
73
74
def match(input)
@@ -75,15 +77,6 @@ def match(input)
75
77
76
78
protected
79
- def method_missing(meth, *args, &block)
- if @printer.respond_to? meth
80
- @printer.send meth, *args, &block
81
- else
82
- super
83
- end
84
85
-
86
- # FIXME: use delegate?
87
def errmsg(*args)
88
@printer.print_error(*args)
89
0 commit comments