class IRB::Statement::Expression

公共类方法

new(代码, 是否为赋值) 点击切换源代码
# File irb/statement.rb, line 39
def initialize(code, is_assignment)
  @code = code
  @is_assignment = is_assignment
end

公共实例方法

is_assignment?() 点击切换源代码
# File irb/statement.rb, line 52
def is_assignment?
  @is_assignment
end
should_be_handled_by_debugger?() 点击切换源代码
# File irb/statement.rb, line 48
def should_be_handled_by_debugger?
  true
end
suppresses_echo?() 点击切换源代码
# File irb/statement.rb, line 44
def suppresses_echo?
  @code.match?(/;\s*\z/)
end