Class: Svg::Point

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Point.



144
145
146
147
# File 'lib/svg.rb', line 144

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

Instance Method Details

#xObject



148
149
150
# File 'lib/svg.rb', line 148

def x
  @x
end

#yObject



151
152
153
# File 'lib/svg.rb', line 151

def y
  @y
end