Method: EagleCAD::Geometry::Pin.from_xml

Defined in:
lib/eaglecad/geometry.rb

.from_xml(element) ⇒ Object



82
83
84
85
# File 'lib/eaglecad/geometry.rb', line 82

def self.from_xml(element)
		origin = Geometry.point_from(element, 'x', 'y')
		Geometry::Pin.new(element.attributes['direction'], element.attributes['function'], element.attributes['length'], element.attributes['name'], origin, element.attributes['swaplevel'], element.attributes['rot'], element.attributes['visible'])
end