Class: XMLable::Handlers::Document
- Defined in:
- lib/xmlable/handlers/document.rb
Overview
Document class handles XML document
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#from_xml_document(doc) ⇒ XMLable::Mixins::Object
Create document object from the XML document.
-
#initialize(type) ⇒ Document
constructor
A new instance of Document.
- #proxy ⇒ Object
Methods inherited from Base
#block_settings?, build, #inject_wraped, #method_name, #options, #options?, #type_class, #wrapped_type?
Constructor Details
#initialize(type) ⇒ Document
Returns a new instance of Document.
10 11 12 |
# File 'lib/xmlable/handlers/document.rb', line 10 def initialize(type) @type = type end |
Instance Method Details
#from_xml_document(doc) ⇒ XMLable::Mixins::Object
Create document object from the XML document
28 29 30 |
# File 'lib/xmlable/handlers/document.rb', line 28 def from_xml_document(doc) Builder.build_document(doc, self) end |
#proxy ⇒ Object
17 18 19 |
# File 'lib/xmlable/handlers/document.rb', line 17 def proxy @type end |