Class: Gamefic::Query::Matches
- Inherits:
-
Object
- Object
- Gamefic::Query::Matches
- Defined in:
- lib/gamefic/query/matches.rb
Instance Attribute Summary collapse
-
#matching_text ⇒ Object
readonly
Returns the value of attribute matching_text.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
-
#remainder ⇒ Object
readonly
Returns the value of attribute remainder.
Instance Method Summary collapse
-
#initialize(objects, matching_text, remainder) ⇒ Matches
constructor
A new instance of Matches.
Constructor Details
#initialize(objects, matching_text, remainder) ⇒ Matches
Returns a new instance of Matches.
4 5 6 7 8 9 |
# File 'lib/gamefic/query/matches.rb', line 4 def initialize(objects, matching_text, remainder) @objects = objects @matching_text = matching_text @remainder = remainder @@last_match = self end |
Instance Attribute Details
#matching_text ⇒ Object (readonly)
Returns the value of attribute matching_text.
3 4 5 |
# File 'lib/gamefic/query/matches.rb', line 3 def matching_text @matching_text end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
3 4 5 |
# File 'lib/gamefic/query/matches.rb', line 3 def objects @objects end |
#remainder ⇒ Object (readonly)
Returns the value of attribute remainder.
3 4 5 |
# File 'lib/gamefic/query/matches.rb', line 3 def remainder @remainder end |