Class: Atom::Pub::Categories

Inherits:
Array
  • Object
show all
Includes:
Xml::Parseable
Defined in:
lib/atom/pub.rb

Instance Method Summary collapse

Methods included from Xml::Parseable

#==, #accessor_name, #current_node_is?, included, #next_node_is?, #parse, #to_xml

Constructor Details

#initialize(o) ⇒ Categories

Returns a new instance of Categories.



58
59
60
61
62
63
# File 'lib/atom/pub.rb', line 58

def initialize(o)
  super([])
  parse(o, :once => true)
  o.read
  parse(o)
end

Instance Method Details

#categoriesObject



66
# File 'lib/atom/pub.rb', line 66

def categories; self; end

#fixed?Boolean

True true if fixed was ‘yes’ or ‘true’

Returns:

  • (Boolean)


69
70
71
# File 'lib/atom/pub.rb', line 69

def fixed?
  !self.fixed.nil? && %w(yes true).include?(self.fixed.downcase)
end