Method: Peachy::Proxy#initialize
- Defined in:
- lib/peachy/proxy.rb
#initialize(xml_node) ⇒ Proxy
Takes either a string containing XML or a Nokogiri::XML::Element as the single argument.
13 14 15 16 |
# File 'lib/peachy/proxy.rb', line 13 def initialize xml_node @xml = xml_node if xml_node.kind_of? String @node = xml_node if xml_node.kind_of? Peachy::Parsers::ParserWrapper end |