Module: RSS::Utils::YesOther

Defined in:
lib/rss/utils.rb

Class Method Summary collapse

Class Method Details

.parse(value) ⇒ Object



148
149
150
151
152
153
154
# File 'lib/rss/utils.rb', line 148

def parse(value)
  if [true, false].include?(value)
    value
  else
    /\Ayes\z/i.match(value.to_s) ? true : false
  end
end