Class: QbertBot::Match
- Inherits:
-
Object
- Object
- QbertBot::Match
- Defined in:
- lib/qbert_bot/robot.rb
Instance Attribute Summary collapse
-
#listener ⇒ Object
readonly
Returns the value of attribute listener.
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
Instance Method Summary collapse
-
#initialize(listener, matches) ⇒ Match
constructor
A new instance of Match.
- #proc ⇒ Object
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
#listener ⇒ Object (readonly)
Returns the value of attribute listener.
11 12 13 |
# File 'lib/qbert_bot/robot.rb', line 11 def listener @listener end |
#matches ⇒ Object (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
#proc ⇒ Object
17 18 19 |
# File 'lib/qbert_bot/robot.rb', line 17 def proc @listener.proc end |