Class: Frepl::IfStatement
- Inherits:
-
MultilineStatement
- Object
- Statement
- MultilineStatement
- Frepl::IfStatement
- Defined in:
- lib/frepl/statements/if_statement.rb
Instance Attribute Summary
Attributes inherited from MultilineStatement
Instance Method Summary collapse
Methods inherited from MultilineStatement
#complete?, #incomplete?, #initialize, #output
Methods inherited from Statement
Constructor Details
This class inherits a constructor from Frepl::MultilineStatement
Instance Method Details
#accept(visitor) ⇒ Object
7 8 9 |
# File 'lib/frepl/statements/if_statement.rb', line 7 def accept(visitor) visitor.visit_ifstatement(self) end |
#terminal_regex ⇒ Object
3 4 5 |
# File 'lib/frepl/statements/if_statement.rb', line 3 def terminal_regex /end\s?if/ end |