123456789_123456789_123456789_123456789_123456789_

Module: RSS::Utils::YesOther

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 148

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