lib/roda/plugins/typecast_params.rb
def parse!(klass, v)
          case v
          when ''
            nil
          when String
            _string_parse!(klass, v)
          else
            raise Error, "unexpected value received: #{v.inspect}"
          end
        end
# Helper for conversion methods where '' should be considered nil,
# and only String values should be converted by calling +parse+ on
# the given +klass+.
Helper for conversion methods where '' should be considered nil,
and only String values should be converted by calling +parse+ on
the given +klass+.
Helper for conversion methods where ' ' should be considered nil and only String values should be converted by calling + parse + on the given + klass + .
def parse!(klass, v)
          case v
          when ''
            nil
          when String
            _string_parse!(klass, v)
          else
            raise Error, "unexpected value received: #{v.inspect}"
          end
        end
def parse! ( klass , v ) case v when '' nil when String _string_parse! ( klass , v ) else raise Error , "unexpected value received: #{v.inspect}" end end
Helper for conversion methods where '' should be considered nil,
and only String values should be converted by calling +parse+ on
the given +klass+.
Helper for conversion methods where ' ' should be considered nil and only String values should be converted by calling + parse + on the given + klass + .
klass
v