Class: Language::Matcher::MatchData
- Inherits:
-
Struct
- Object
- Struct
- Language::Matcher::MatchData
- Defined in:
- lib/language/matcher.rb
Overview
Contains the index matched, and the word matched
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#match ⇒ Object
Returns the value of attribute match.
Instance Method Summary collapse
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
14 15 16 |
# File 'lib/language/matcher.rb', line 14 def index @index end |
#match ⇒ Object
Returns the value of attribute match
14 15 16 |
# File 'lib/language/matcher.rb', line 14 def match @match end |
Instance Method Details
#inspect ⇒ Object
15 16 17 |
# File 'lib/language/matcher.rb', line 15 def inspect "#{match.inspect}@#{index}" end |