Class: Binary_Puzzle_Solver::Move
- Inherits:
-
Object
- Object
- Binary_Puzzle_Solver::Move
- Defined in:
- lib/binary_puzzle_solver/base.rb
Instance Attribute Summary collapse
-
#coord ⇒ Object
readonly
Returns the value of attribute coord.
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#val ⇒ Object
readonly
Returns the value of attribute val.
Instance Method Summary collapse
-
#initialize(params) ⇒ Move
constructor
A new instance of Move.
Constructor Details
#initialize(params) ⇒ Move
Returns a new instance of Move.
161 162 163 164 165 166 |
# File 'lib/binary_puzzle_solver/base.rb', line 161 def initialize (params) @coord = params[:coord] @dir = params[:dir] @reason = params[:reason] @val = params[:val] end |
Instance Attribute Details
#coord ⇒ Object (readonly)
Returns the value of attribute coord.
160 161 162 |
# File 'lib/binary_puzzle_solver/base.rb', line 160 def coord @coord end |
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
160 161 162 |
# File 'lib/binary_puzzle_solver/base.rb', line 160 def dir @dir end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
160 161 162 |
# File 'lib/binary_puzzle_solver/base.rb', line 160 def reason @reason end |
#val ⇒ Object (readonly)
Returns the value of attribute val.
160 161 162 |
# File 'lib/binary_puzzle_solver/base.rb', line 160 def val @val end |