Module: Axiom::Types::Encodable

Included in:
String, Symbol
Defined in:
lib/axiom/types/encodable.rb,
lib/axiom/types/encodable.rb

Overview

Add encoding constraints to a type

Instance Method Summary collapse

Instance Method Details

#finalizeAxiom::Types::Encodable

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Finalize by setting up a primitive constraint



35
36
37
38
39
# File 'lib/axiom/types/encodable.rb', line 35

def finalize
  return self if frozen?
  ascii_compatible? ? use_ascii_compatible_encoding : use_encoding
  super
end