Module: Eventsimple::Types::MetaPreservingBuilder
- Defined in:
- lib/eventsimple/types.rb
Overview
Extension that preserves eventsimple meta through all type transformations
Constant Summary collapse
- CHAINABLE_METHODS =
%i[optional default enum constrained of].freeze
Instance Method Summary collapse
Instance Method Details
#encrypted ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/eventsimple/types.rb', line 29 def encrypted if respond_to?(:name) && name.to_s.include?('TrueClass') && name.to_s.include?('FalseClass') raise ArgumentError, 'Bool type does not support encryption' end EncryptedType.new(self) end |