class Frepl::DerivedType
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/frepl/statements/derived_type.rb, line 15 def ==(other) if other.is_a?(DerivedType) self.name == other.name else super(other) end end
accept(visitor)
click to toggle source
# File lib/frepl/statements/derived_type.rb, line 7 def accept(visitor) visitor.visit_derived_type(self) end
name()
click to toggle source
# File lib/frepl/statements/derived_type.rb, line 11 def name @name ||= lines.first.match(Frepl::Classifier::DERIVED_TYPE_REGEX)[1] end
terminal_regex()
click to toggle source
# File lib/frepl/statements/derived_type.rb, line 3 def terminal_regex /end type\s*#{Frepl::Classifier::VARIABLE_NAME_REGEX}/i end
Private Instance Methods
starting_regex()
click to toggle source
# File lib/frepl/statements/derived_type.rb, line 25 def starting_regex Frepl::Classifier::DERIVED_TYPE_REGEX end