class Shale::Adapter::Ox::Document
Wrapper around Ox
API
@api private
Attributes
doc[R]
Public Class Methods
new()
click to toggle source
Initialize object
@api private
# File lib/shale/adapter/ox.rb, line 54 def initialize @doc = ::Ox::Document.new end
Public Instance Methods
add_attribute(element, name, value)
click to toggle source
add_element(element, child)
click to toggle source
add_text(element, text)
click to toggle source
create_element(name)
click to toggle source
Create Ox
element
@param [String] name Name of the XML element
@return [::Ox::Element]
@api private
# File lib/shale/adapter/ox.rb, line 65 def create_element(name) ::Ox::Element.new(name) end