Class: Operation
- Inherits:
-
Object
- Object
- Operation
- Defined in:
- lib/my_own_maze/operation.rb
Direct Known Subclasses
Instance Method Summary collapse
- #do(action) ⇒ Object
-
#initialize(maze, player, rule, style) ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
#initialize(maze, player, rule, style) ⇒ Operation
Returns a new instance of Operation.
2 3 4 5 6 7 |
# File 'lib/my_own_maze/operation.rb', line 2 def initialize(maze, player, rule, style) @maze = maze @player = player @rule = rule @style = style end |
Instance Method Details
#do(action) ⇒ Object
9 10 11 |
# File 'lib/my_own_maze/operation.rb', line 9 def do(action) raise "undefined do(#{action}) method" end |