Class: Prefab::ContextShape
- Inherits:
-
Object
- Object
- Prefab::ContextShape
- Defined in:
- lib/prefab/context_shape.rb
Constant Summary collapse
- MAPPING =
{ Integer => 1, String => 2, Float => 4, TrueClass => 5, FalseClass => 5, Array => 10, }.freeze
- DEFAULT =
We default to String if the type isn’t a primitive we support. This is because we do a ‘to_s` in the CriteriaEvaluator.
MAPPING[String]