Class: Sinatra::Browse::ParameterTypes::String

Inherits:
Sinatra::Browse::ParameterType show all
Defined in:
lib/sinatra/browse/parameter_types/string.rb

Instance Attribute Summary

Attributes inherited from Sinatra::Browse::ParameterType

#default, #description, #name, #validators

Instance Method Summary collapse

Methods inherited from Sinatra::Browse::ParameterType

#build_error_hash, #default_set?, inherited, #initialize, #required?, #to_hash, #transform, #type, #validate, validator, validator_declarations, #validator_declarations

Constructor Details

This class inherits a constructor from Sinatra::Browse::ParameterType

Instance Method Details

#coerce(value) ⇒ Object



6
7
8
# File 'lib/sinatra/browse/parameter_types/string.rb', line 6

def coerce(value)
  String(value)
end