8 lines
99 B
Ruby
8 lines
99 B
Ruby
|
class Point
|
||
|
def initialize x = 0 , y = 0
|
||
|
@x = x
|
||
|
@y = y
|
||
|
end
|
||
|
attr_accessor :x , :y
|
||
|
end
|