Module: RSS::Utils::TrueNil

Defined in:
lib/rss/opds.rb

Class Method Summary collapse

Class Method Details

.parse(value) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/rss/opds.rb', line 10

def parse(value)
  if value === true
    value
  else
    /\Atrue\z/i.match(value.to_s) ? true : nil
  end
end