Class: Binary_Puzzle_Solver::Coord
- Inherits:
-
Object
- Object
- Binary_Puzzle_Solver::Coord
- Defined in:
- lib/binary_puzzle_solver/base.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(params) ⇒ Coord
constructor
A new instance of Coord.
- #rotate ⇒ Object
Constructor Details
#initialize(params) ⇒ Coord
Returns a new instance of Coord.
41 42 43 44 45 46 |
# File 'lib/binary_puzzle_solver/base.rb', line 41 def initialize (params) @x = params[:x] @y = params[:y] return end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
39 40 41 |
# File 'lib/binary_puzzle_solver/base.rb', line 39 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
39 40 41 |
# File 'lib/binary_puzzle_solver/base.rb', line 39 def y @y end |