Class: Automatic::OPML::DOM::OPML

Inherits:
Element
  • Object
show all
Defined in:
lib/automatic/opml.rb

Overview

Element

Instance Attribute Summary

Attributes inherited from Element

#attr, #children, #parent

Instance Method Summary collapse

Methods inherited from Element

#<<, #[], #[]=, #each, #initialize, #is_breaakpoint?, #is_comment?, #text, #type

Constructor Details

This class inherits a constructor from Automatic::OPML::DOM::Element

Instance Method Details

#bodyObject



95
96
97
# File 'lib/automatic/opml.rb', line 95

def body
  @children.find {|x| x.is_a? Body }
end

#headObject



91
92
93
# File 'lib/automatic/opml.rb', line 91

def head
  @children.find {|x| x.is_a? Head }
end