Class: Trax::Core::Blueprint

Inherits:
Types::Struct show all
Defined in:
lib/trax/core/blueprint.rb

Constant Summary

Constants inherited from Types::Struct

Types::Struct::DEFAULT_VALUES_FOR_PROPERTY_TYPES

Class Method Summary collapse

Methods inherited from Types::Struct

array_property, boolean_property, enum_property, fields, fields_module, float_property, integer_property, string_property, struct_property, to_schema, #to_serializable_hash, type, #value

Class Method Details

.const_missing(const_name) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/trax/core/blueprint.rb', line 4

def self.const_missing(const_name)
  if fields.const_defined?(const_name, false)
    result = const_set(const_name, fields.const_get(const_name)) if fields.const_defined?(const_name, false)
  else
    result = super(const_name)
  end

  result
end