method

parse

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: ExplicitCleanOther
parse(value) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rss/utils.rb, line 130
      def parse(value)
        if [true, false, nil].include?(value)
          value
        else
          case value.to_s
          when /\Aexplicit|yes|true\z/
            true
          when /\Aclean|no|false\z/
            false
          else
            nil
          end
        end
      end
Register or log in to add new notes.