Class: IRB::Statement::Command
- Inherits:
-
IRB::Statement
- Object
- IRB::Statement
- IRB::Statement::Command
- Defined in:
- lib/irb/statement.rb
Instance Attribute Summary collapse
-
#arg ⇒ Object
readonly
Returns the value of attribute arg.
-
#command_class ⇒ Object
readonly
Returns the value of attribute command_class.
Attributes inherited from IRB::Statement
Instance Method Summary collapse
-
#initialize(original_code, command_class, arg) ⇒ Command
constructor
A new instance of Command.
- #is_assignment? ⇒ Boolean
- #should_be_handled_by_debugger? ⇒ Boolean
- #suppresses_echo? ⇒ Boolean
Constructor Details
permalink #initialize(original_code, command_class, arg) ⇒ Command
Returns a new instance of Command.
81 82 83 84 85 |
# File 'lib/irb/statement.rb', line 81 def initialize(original_code, command_class, arg) @code = original_code @command_class = command_class @arg = arg end |
Instance Attribute Details
Instance Method Details
permalink #is_assignment? ⇒ Boolean
87 88 89 |
# File 'lib/irb/statement.rb', line 87 def is_assignment? false end |
permalink #should_be_handled_by_debugger? ⇒ Boolean
95 96 97 98 |
# File 'lib/irb/statement.rb', line 95 def should_be_handled_by_debugger? require_relative 'command/debug' IRB::Command::DebugCommand > @command_class end |
permalink #suppresses_echo? ⇒ Boolean
91 92 93 |
# File 'lib/irb/statement.rb', line 91 def suppresses_echo? true end |