Class: BiNode
- Inherits:
-
Object
- Object
- BiNode
- Defined in:
- lib/bi-dimensional-node.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#east ⇒ Object
Returns the value of attribute east.
-
#north ⇒ Object
Returns the value of attribute north.
-
#south ⇒ Object
Returns the value of attribute south.
-
#west ⇒ Object
Returns the value of attribute west.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y, *args) ⇒ BiNode
constructor
Create the tree’s root with the base values x and y and an unkown number of arguments.
Constructor Details
#initialize(x, y, *args) ⇒ BiNode
Create the tree’s root with the base values x and y and an unkown number of arguments.
7 8 9 10 11 |
# File 'lib/bi-dimensional-node.rb', line 7 def initialize(x, y, *args) @x = x @y = y @args = args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
3 4 5 |
# File 'lib/bi-dimensional-node.rb', line 3 def args @args end |
#east ⇒ Object
Returns the value of attribute east.
3 4 5 |
# File 'lib/bi-dimensional-node.rb', line 3 def east @east end |
#north ⇒ Object
Returns the value of attribute north.
3 4 5 |
# File 'lib/bi-dimensional-node.rb', line 3 def north @north end |
#south ⇒ Object
Returns the value of attribute south.
3 4 5 |
# File 'lib/bi-dimensional-node.rb', line 3 def south @south end |
#west ⇒ Object
Returns the value of attribute west.
3 4 5 |
# File 'lib/bi-dimensional-node.rb', line 3 def west @west end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
2 3 4 |
# File 'lib/bi-dimensional-node.rb', line 2 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
2 3 4 |
# File 'lib/bi-dimensional-node.rb', line 2 def y @y end |