Class: Gamefic::Query::Matches

Inherits:
Object
  • Object
show all
Defined in:
lib/gamefic/query/matches.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_textObject (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

#objectsObject (readonly)

Returns the value of attribute objects.



3
4
5
# File 'lib/gamefic/query/matches.rb', line 3

def objects
  @objects
end

#remainderObject (readonly)

Returns the value of attribute remainder.



3
4
5
# File 'lib/gamefic/query/matches.rb', line 3

def remainder
  @remainder
end