123456789_123456789_123456789_123456789_123456789_

Module: RSS::Utils::YesCleanOther

Relationships & Source Files
Defined in: lib/rss/utils.rb

Class Method Summary

Class Method Details

.parse(value) (mod_func)

[ GitHub ]

  
# File 'lib/rss/utils.rb', line 130

def parse(value)
  if [true, false, nil].include?(value)
    value
  else
    case value.to_s
    when /\Ayes\z/i
      true
    when /\Aclean\z/i
      false
    else
      nil
    end
  end
end