Class: Runestone::WebSearch::Match
- Inherits:
-
Object
- Object
- Runestone::WebSearch::Match
- Defined in:
- lib/runestone/web_search.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#substitution ⇒ Object
Returns the value of attribute substitution.
Instance Method Summary collapse
-
#initialize(index, substitution) ⇒ Match
constructor
A new instance of Match.
Constructor Details
#initialize(index, substitution) ⇒ Match
Returns a new instance of Match.
9 10 11 12 |
# File 'lib/runestone/web_search.rb', line 9 def initialize(index, substitution) @index = index @substitution = substitution end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
8 9 10 |
# File 'lib/runestone/web_search.rb', line 8 def index @index end |
#substitution ⇒ Object
Returns the value of attribute substitution.
8 9 10 |
# File 'lib/runestone/web_search.rb', line 8 def substitution @substitution end |