Class: IRB::Statement::Expression
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::IRB::Statement
|
|
Instance Chain:
self,
::IRB::Statement
|
|
Inherits: |
IRB::Statement
|
Defined in: | lib/irb/statement.rb |
Class Method Summary
- .new(code, is_assignment) ⇒ Expression constructor
Instance Attribute Summary
- #is_assignment? ⇒ Boolean readonly
- #should_be_handled_by_debugger? ⇒ Boolean readonly
- #suppresses_echo? ⇒ Boolean readonly
::IRB::Statement
- Inherited
Constructor Details
.new(code, is_assignment) ⇒ Expression
Instance Attribute Details
#is_assignment? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/irb/statement.rb', line 52
def is_assignment? @is_assignment end
#should_be_handled_by_debugger? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/irb/statement.rb', line 48
def should_be_handled_by_debugger? true end
#suppresses_echo? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/irb/statement.rb', line 44
def suppresses_echo? @code.match?(/;\s*\z/) end