module RSS::Utils::YesOther

Public Instance Methods

parse(value) click to toggle source
# File rss-0.3.0/lib/rss/utils.rb, line 130
def parse(value)
  if [true, false].include?(value)
    value
  else
    /\Ayes\z/i.match(value.to_s) ? true : false
  end
end