123456789_123456789_123456789_123456789_123456789_

Class: IRB::Statement::Command

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: IRB::Statement
Defined in: lib/irb/statement.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(original_code, command_class, arg) ⇒ Command

[ GitHub ]

  
# File 'lib/irb/statement.rb', line 60

def initialize(original_code, command_class, arg)
  @code = original_code
  @command_class = command_class
  @arg = arg
end

Instance Attribute Details

#arg (readonly)

[ GitHub ]

  
# File 'lib/irb/statement.rb', line 58

attr_reader :command_class, :arg

#command_class (readonly)

[ GitHub ]

  
# File 'lib/irb/statement.rb', line 58

attr_reader :command_class, :arg

#is_assignment?Boolean (readonly)

[ GitHub ]

  
# File 'lib/irb/statement.rb', line 66

def is_assignment?
  false
end

#should_be_handled_by_debugger?Boolean (readonly)

[ GitHub ]

  
# File 'lib/irb/statement.rb', line 74

def should_be_handled_by_debugger?
  require_relative 'command/debug'
  IRB::Command::DebugCommand > @command_class
end

#suppresses_echo?Boolean (readonly)

[ GitHub ]

  
# File 'lib/irb/statement.rb', line 70

def suppresses_echo?
  true
end