Class: Xommelier::OPML::CategoryArray

Inherits:
Array
  • Object
show all
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_xommelierObject



40
41
42
# File 'lib/xommelier/opml.rb', line 40

def to_xommelier
  map(&:to_xommelier).join(',')
end