lib/roda/plugins/typecast_params.rb
def string_or_numeric!(v)
          case v
          when ''
            nil
          when String, Numeric
            true
          else
            raise Error, "unexpected value received: #{v.inspect}"
          end
        end
# Helper for conversion methods where '' should be considered nil,
# and only String or Numeric values should be converted.
Helper for conversion methods where '' should be considered nil,
and only String or Numeric values should be converted.
Helper for conversion methods where ' ' should be considered nil and only String or Numeric values should be converted .
def string_or_numeric!(v)
          case v
          when ''
            nil
          when String, Numeric
            true
          else
            raise Error, "unexpected value received: #{v.inspect}"
          end
        end
def string_or_numeric! ( v ) case v when '' nil when String , Numeric true else raise Error , "unexpected value received: #{v.inspect}" end end
Helper for conversion methods where '' should be considered nil,
and only String or Numeric values should be converted.
Helper for conversion methods where ' ' should be considered nil and only String or Numeric values should be converted .
v