Module: MobyUtil::XML::LibXML::Abstraction

Included in:
Document, Element, Nodeset
Defined in:
lib/tdriver/util/xml/parsers/libxml/libxml.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (private)

Raises:

  • (RuntimeError)


52
53
54
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 52

def method_missing( method, *args, &block )
  raise RuntimeError.new("Method '#{ method.to_s }' is not supported by #{ self.class.to_s } (#{ @parser.to_s })" )
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 46

def empty?
  @xml.empty?
end

#nameObject



34
35
36
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 34

def name
  @xml.name
end

#nil?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 30

def nil?
  @xml.nil?
end

#sizeObject



42
43
44
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 42

def size
  @xml.size
end

#to_sObject



38
39
40
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 38

def to_s
  @xml.to_s
end