Module: Axiom::Types::Encodable
Overview
Add encoding constraints to a type
Instance Method Summary collapse
-
#finalize ⇒ Axiom::Types::Encodable
private
Finalize by setting up a primitive constraint.
Instance Method Details
#finalize ⇒ Axiom::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 |