Class: Xommelier::OPML::CategoryArray
- Inherits:
-
Array
- Object
- Array
- Xommelier::OPML::CategoryArray
- Defined in:
- lib/xommelier/opml.rb
Simple Types collapse
Class Method Details
.from_xommelier(value) ⇒ Object
36 37 38 |
# File 'lib/xommelier/opml.rb', line 36 def self.from_xommelier(value) new(value.to_s.split(',').map { |category| Category.from_xommelier(category) }) end |
Instance Method Details
#to_xommelier ⇒ Object
40 41 42 |
# File 'lib/xommelier/opml.rb', line 40 def to_xommelier map(&:to_xommelier).join(',') end |