Class: Atom::Pub::Categories
- Inherits:
-
Array
- Object
- Array
- Atom::Pub::Categories
- Includes:
- Xml::Parseable
- Defined in:
- lib/atom/pub.rb
Instance Method Summary (collapse)
- - (Object) categories
-
- (Boolean) fixed?
True true if fixed was 'yes' or 'true'.
-
- (Categories) initialize(o)
constructor
A new instance of Categories.
Methods included from Xml::Parseable
#==, #accessor_name, #current_node_is?, included, #next_node_is?, #parse, #to_xml
Constructor Details
- (Categories) initialize(o)
A new instance of Categories
66 67 68 69 70 71 |
# File 'lib/atom/pub.rb', line 66 def initialize(o) super([]) parse(o, :once => true) o.read parse(o) end |
Instance Method Details
- (Object) categories
74 |
# File 'lib/atom/pub.rb', line 74 def categories; self; end |
- (Boolean) fixed?
True true if fixed was 'yes' or 'true'
77 78 79 |
# File 'lib/atom/pub.rb', line 77 def fixed? !self.fixed.nil? && %w(yes true).include?(self.fixed.downcase) end |