Class: Svg::Point
- Inherits:
-
Object
- Object
- Svg::Point
- Defined in:
- lib/svg.rb
Instance Method Summary collapse
-
#initialize(x = 0, y = 0) ⇒ Point
constructor
A new instance of Point.
- #x ⇒ Object
- #y ⇒ Object
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
#x ⇒ Object
148 149 150 |
# File 'lib/svg.rb', line 148 def x @x end |
#y ⇒ Object
151 152 153 |
# File 'lib/svg.rb', line 151 def y @y end |