Module: Structish

Defined in:
lib/structish.rb,
lib/structish/hash.rb,
lib/structish/array.rb,
lib/structish/config.rb,
lib/structish/version.rb,
lib/structish/validation.rb,
lib/structish/validations.rb,
lib/structish/validation_error.rb

Defined Under Namespace

Modules: Validations Classes: Array, Config, Hash, Validation, ValidationError

Constant Summary collapse

Any =
nil
Boolean =
[TrueClass, FalseClass].freeze
Number =
[Integer, Float].freeze
Primitive =
[String, Float, Integer, TrueClass, FalseClass, Symbol].freeze
CAST_METHODS =
{
  "String" => :to_s,
  "Float" => :to_f,
  "Integer" => :to_i,
  "Hash" => :to_h,
  "Symbol" => :to_sym,
  "Array" => :to_a
}.freeze
VERSION =
"0.3.0"