Class: XsdModel::Parser
- Inherits:
-
Object
- Object
- XsdModel::Parser
- Defined in:
- lib/xsd_model/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(xml_string, options) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(xml_string, options) ⇒ Parser
Returns a new instance of Parser.
14 15 16 17 |
# File 'lib/xsd_model/parser.rb', line 14 def initialize(xml_string, ) @xml = Nokogiri(xml_string) = end |
Class Method Details
.call(xml_string, options = {}) ⇒ Object
10 11 12 |
# File 'lib/xsd_model/parser.rb', line 10 def self.call(xml_string, = {}) new(xml_string, ).call end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'lib/xsd_model/parser.rb', line 19 def call parse_node(@xml) end |