Class: Xommelier::OPML::Category

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

Returns:



22
23
24
# File 'lib/xommelier/opml.rb', line 22

def category?
  [0].nil?
end

#tag?Boolean

Returns:



26
27
28
# File 'lib/xommelier/opml.rb', line 26

def tag?
  !category?
end

#to_xommelierObject



30
31
32
# File 'lib/xommelier/opml.rb', line 30

def to_xommelier
  join('/')
end