Class: Math::Stepwise::Point
- Inherits:
-
Object
- Object
- Math::Stepwise::Point
- Defined in:
- lib/mext/math/stepwise.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(x, y) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(x, y) ⇒ Point
Returns a new instance of Point.
8 9 10 11 |
# File 'lib/mext/math/stepwise.rb', line 8 def initialize(x, y) @x = x @y = y end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
6 7 8 |
# File 'lib/mext/math/stepwise.rb', line 6 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
6 7 8 |
# File 'lib/mext/math/stepwise.rb', line 6 def y @y end |