Sha256: 71875d6c1dbd37523150aa4d5852cc8754b784154473955cab19103dba0ccaa8
Contents?: true
Size: 482 Bytes
Versions: 11
Compression:
Stored size: 482 Bytes
Contents
require "rexml/document" require 'erb' require 'ostruct' module Fog module Compute module LibvirtUtil # finds a value from xml def document path, attribute=nil return nil if new? xml = REXML::Document.new(self.xml) attribute.nil? ? xml.elements[path].text : xml.elements[path].attributes[attribute] end class ErbBinding < OpenStruct def get_binding return binding() end end end end end
Version data entries
11 entries across 11 versions & 4 rubygems