Method: Mixture::Types.mappings
- Defined in:
- lib/mixture/types.rb
.mappings ⇒ Hash{Symbol => Mixture::Types::Type}
A list of the mappings that all types have. This is used
primarily to map a type's symbol name to its type (e.g.
:string
to String
). This is also used for boolean mapping.
21 22 23 24 25 26 27 |
# File 'lib/mixture/types.rb', line 21 def self.mappings ::Hash[types.flat_map do |type| type.mappings.map do |name| [name, type] end end] end |