Module: RSS::Utils::ExplicitCleanOther
Relationships & Source Files | |
Defined in: | lib/rss/utils.rb |
Class Method Summary
- .parse(value) mod_func
Class Method Details
.parse(value) (mod_func)
[ GitHub ]# File 'lib/rss/utils.rb', line 112
def parse(value) if [true, false, nil].include?(value) value else case value.to_s when /\Aexplicit|yes|true\z/i true when /\Aclean|no|false\z/i false else nil end end end