Class: Point

Inherits:
Object
  • Object
show all
Defined in:
lib/zarchitect/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Point

Returns a new instance of Point.



157
158
159
160
# File 'lib/zarchitect/image.rb', line 157

def initialize(x, y)
  @x = x
  @y = y
end

Instance Attribute Details

#xObject

Returns the value of attribute x.



155
156
157
# File 'lib/zarchitect/image.rb', line 155

def x
  @x
end

#yObject

Returns the value of attribute y.



155
156
157
# File 'lib/zarchitect/image.rb', line 155

def y
  @y
end