Class: Frepl::IfStatement

Inherits:
MultilineStatement show all
Defined in:
lib/frepl/statements/if_statement.rb

Instance Attribute Summary

Attributes inherited from MultilineStatement

#lines

Instance Method Summary collapse

Methods inherited from MultilineStatement

#complete?, #incomplete?, #initialize, #output

Methods inherited from Statement

#incomplete?, #output

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_regexObject



3
4
5
# File 'lib/frepl/statements/if_statement.rb', line 3

def terminal_regex
  /end\s?if/
end