Class: EagleCAD::Geometry::Hole
- Inherits:
-
Struct
- Object
- Struct
- EagleCAD::Geometry::Hole
- Defined in:
- lib/eaglecad/geometry.rb
Instance Attribute Summary collapse
-
#drill ⇒ Object
Returns the value of attribute drill.
-
#origin ⇒ Object
Returns the value of attribute origin.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#drill ⇒ Object
Returns the value of attribute drill
29 30 31 |
# File 'lib/eaglecad/geometry.rb', line 29 def drill @drill end |
#origin ⇒ Object
Returns the value of attribute origin
29 30 31 |
# File 'lib/eaglecad/geometry.rb', line 29 def origin @origin end |
Class Method Details
.from_xml(element) ⇒ Object
30 31 32 |
# File 'lib/eaglecad/geometry.rb', line 30 def self.from_xml(element) Geometry::Hole.new Geometry.point_from(element, 'x', 'y'), element.attributes['drill'] end |