Class: Runestone::WebSearch::PartialMatch

Inherits:
Object
  • Object
show all
Defined in:
lib/runestone/web_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start_index, end_index, substitution) ⇒ PartialMatch

Returns a new instance of PartialMatch.



17
18
19
20
21
# File 'lib/runestone/web_search.rb', line 17

def initialize(start_index, end_index, substitution)
  @start_index = start_index
  @end_index = end_index
  @substitution = substitution
end

Instance Attribute Details

#end_indexObject

Returns the value of attribute end_index.



16
17
18
# File 'lib/runestone/web_search.rb', line 16

def end_index
  @end_index
end

#start_indexObject

Returns the value of attribute start_index.



16
17
18
# File 'lib/runestone/web_search.rb', line 16

def start_index
  @start_index
end

#substitutionObject

Returns the value of attribute substitution.



16
17
18
# File 'lib/runestone/web_search.rb', line 16

def substitution
  @substitution
end