Class: Xommelier::OPML::Category
- Inherits:
-
Array
- Object
- Array
- Xommelier::OPML::Category
- Defined in:
- lib/xommelier/opml.rb
Simple Types collapse
Class Method Details
.from_xommelier(value) ⇒ Object
18 19 20 |
# File 'lib/xommelier/opml.rb', line 18 def self.from_xommelier(value) new(value.split('/')) end |
Instance Method Details
#category? ⇒ Boolean
22 23 24 |
# File 'lib/xommelier/opml.rb', line 22 def category? [0].nil? end |
#tag? ⇒ Boolean
26 27 28 |
# File 'lib/xommelier/opml.rb', line 26 def tag? !category? end |
#to_xommelier ⇒ Object
30 31 32 |
# File 'lib/xommelier/opml.rb', line 30 def to_xommelier join('/') end |