Class: Clases::Coordenada
- Inherits:
-
Object
- Object
- Clases::Coordenada
- Defined in:
- lib/imposition/clases.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) ⇒ Coordenada
constructor
A new instance of Coordenada.
- #to_s ⇒ Object
Constructor Details
#initialize(x, y) ⇒ Coordenada
Returns a new instance of Coordenada.
60 61 62 63 |
# File 'lib/imposition/clases.rb', line 60 def initialize(x,y) @x=x @y=y end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
64 65 66 |
# File 'lib/imposition/clases.rb', line 64 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
64 65 66 |
# File 'lib/imposition/clases.rb', line 64 def y @y end |
Instance Method Details
#to_s ⇒ Object
65 66 67 |
# File 'lib/imposition/clases.rb', line 65 def to_s "x=#{@x} y=#{@y}" end |