Class: Camera

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x = 0, y = 0) ⇒ Camera

Returns a new instance of Camera.



3
4
5
6
# File 'lib/camera.rb', line 3

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

Instance Attribute Details

#xObject

Returns the value of attribute x.



2
3
4
# File 'lib/camera.rb', line 2

def x
  @x
end

#yObject

Returns the value of attribute y.



2
3
4
# File 'lib/camera.rb', line 2

def y
  @y
end