Class: Clases::Coordenada

Inherits:
Object
  • Object
show all
Defined in:
lib/imposition/clases.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#xObject (readonly)

Returns the value of attribute x.



64
65
66
# File 'lib/imposition/clases.rb', line 64

def x
  @x
end

#yObject (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_sObject



65
66
67
# File 'lib/imposition/clases.rb', line 65

def to_s
	"x=#{@x} y=#{@y}"
end