Class: Komainu::Match

Inherits:
Object
  • Object
show all
Defined in:
lib/komainu/match.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#indexObject (readonly)

Returns the value of attribute index.



3
4
5
# File 'lib/komainu/match.rb', line 3

def index
  @index
end

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/komainu/match.rb', line 3

def text
  @text
end