Class: Resyma::Core::RegexpRepeat
- Defined in:
- lib/resyma/core/automaton/regexp.rb
Instance Attribute Summary collapse
-
#regexp ⇒ Object
readonly
Returns the value of attribute regexp.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(regexp) ⇒ RegexpRepeat
constructor
Repeat the regexp zero, one, or more times.
- #inject(ab, start_state) ⇒ Object
Methods inherited from Regexp
Constructor Details
#initialize(regexp) ⇒ RegexpRepeat
Repeat the regexp zero, one, or more times
101 102 103 |
# File 'lib/resyma/core/automaton/regexp.rb', line 101 def initialize(regexp) @regexp = regexp end |
Instance Attribute Details
#regexp ⇒ Object (readonly)
Returns the value of attribute regexp.
105 106 107 |
# File 'lib/resyma/core/automaton/regexp.rb', line 105 def regexp @regexp end |
Instance Method Details
#==(other) ⇒ Object
107 108 109 |
# File 'lib/resyma/core/automaton/regexp.rb', line 107 def ==(other) other.is_a?(self.class) && other.regexp == @regexp end |