Class: Komainu::Match
- Inherits:
-
Object
- Object
- Komainu::Match
- Defined in:
- lib/komainu/match.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(index, text) ⇒ Match
constructor
A new instance of Match.
Constructor Details
#initialize(index, text) ⇒ Match
Returns a new instance of Match.
4 5 6 7 |
# File 'lib/komainu/match.rb', line 4 def initialize index, text @index = index @text = text end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
3 4 5 |
# File 'lib/komainu/match.rb', line 3 def index @index end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/komainu/match.rb', line 3 def text @text end |