Class: Runestone::WebSearch::PartialMatch
- Inherits:
-
Object
- Object
- Runestone::WebSearch::PartialMatch
- Defined in:
- lib/runestone/web_search.rb
Instance Attribute Summary collapse
-
#end_index ⇒ Object
Returns the value of attribute end_index.
-
#start_index ⇒ Object
Returns the value of attribute start_index.
-
#substitution ⇒ Object
Returns the value of attribute substitution.
Instance Method Summary collapse
-
#initialize(start_index, end_index, substitution) ⇒ PartialMatch
constructor
A new instance of PartialMatch.
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_index ⇒ Object
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_index ⇒ Object
Returns the value of attribute start_index.
16 17 18 |
# File 'lib/runestone/web_search.rb', line 16 def start_index @start_index end |
#substitution ⇒ Object
Returns the value of attribute substitution.
16 17 18 |
# File 'lib/runestone/web_search.rb', line 16 def substitution @substitution end |