Top Level Namespace

Defined Under Namespace

Modules: AcDc

Instance Method Summary collapse

Instance Method Details

#acdc(xml) ⇒ Object

Will convert the XML to a class found in the library



32
33
34
# File 'lib/acdc.rb', line 32

def acdc(xml)
  AcDc::Body.acdc(xml)
end

#Attribute(name, value) ⇒ Object

Will construct a AcDc::Attribute class



27
28
29
# File 'lib/acdc.rb', line 27

def Attribute(name,value)
  AcDc::Attribute.new(name,value)
end

#Element(value, options = {}, name = nil) ⇒ Object

Will construct a AcDc::Element classs



22
23
24
# File 'lib/acdc.rb', line 22

def Element(value, options = {}, name = nil)
  AcDc::Element.new(value,options,name)
end