Class: QbertBot::Match

Inherits:
Object
  • Object
show all
Defined in:
lib/qbert_bot/robot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(listener, matches) ⇒ Match

Returns a new instance of Match.



12
13
14
15
# File 'lib/qbert_bot/robot.rb', line 12

def initialize(listener, matches)
  @listener = listener
  @matches = matches
end

Instance Attribute Details

#listenerObject (readonly)

Returns the value of attribute listener.



11
12
13
# File 'lib/qbert_bot/robot.rb', line 11

def listener
  @listener
end

#matchesObject (readonly)

Returns the value of attribute matches.



11
12
13
# File 'lib/qbert_bot/robot.rb', line 11

def matches
  @matches
end

Instance Method Details

#procObject



17
18
19
# File 'lib/qbert_bot/robot.rb', line 17

def proc
  @listener.proc
end