In Files

  • rss/utils.rb

Methods

Class/Module Index [+]

Quicksearch

RSS::Utils::YesCleanOther

Public Instance Methods

parse(value) click to toggle source
 
               # File rss/utils.rb, line 129
def parse(value)
  if [true, false, nil].include?(value)
    value
  else
    case value.to_s
    when /\Ayes\z/
      true
    when /\Aclean\z/
      false
    else
      nil
    end
  end
end