Class: IRB::Statement

Inherits:
Object show all
Defined in:
lib/irb/statement.rb

Direct Known Subclasses

Command, EmptyInput, Expression

Defined Under Namespace

Classes: Command, EmptyInput, Expression

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/irb/statement.rb', line 5

def code
  @code
end

Instance Method Details

#is_assignment?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/irb/statement.rb', line 7

def is_assignment?
  raise NotImplementedError
end

#should_be_handled_by_debugger?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/irb/statement.rb', line 15

def should_be_handled_by_debugger?
  raise NotImplementedError
end

#suppresses_echo?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/irb/statement.rb', line 11

def suppresses_echo?
  raise NotImplementedError
end