class Frepl::Function
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/frepl/statements/function.rb, line 15 def ==(other) if other.is_a?(Function) self.name == other.name else super(other) end end
accept(visitor)
click to toggle source
# File lib/frepl/statements/function.rb, line 7 def accept(visitor) visitor.visit_function(self) end
name()
click to toggle source
# File lib/frepl/statements/function.rb, line 11 def name @name ||= lines.first.match(Frepl::Classifier::FUNCTION_REGEX)[2] end
terminal_regex()
click to toggle source
# File lib/frepl/statements/function.rb, line 3 def terminal_regex /end function/ end
Private Instance Methods
starting_regex()
click to toggle source
# File lib/frepl/statements/function.rb, line 25 def starting_regex Frepl::Classifier::FUNCTION_REGEX end