module EagleCAD
Constants
- Attribute
- Point
- Size
Public Class Methods
parse(document)
click to toggle source
@param [REXML::Document] An XML document to parse @return [Drawing] A new {EagleCAD::Drawing}, or nil if there was an error
# File lib/eaglecad.rb, line 14 def self.parse(document) Drawing.from_xml(document.root.elements['drawing']) end
read(filename)
click to toggle source
Load and parse the given {Schematic} or {Board} file @return [Drawing] A new {EagleCAD::Drawing}
# File lib/eaglecad.rb, line 8 def self.read(filename) parse(REXML::Document.new File.open(filename)) end