Module: Brine::Coercing

Included in:
Brine
Defined in:
lib/brine/coercing.rb

Overview

Provide type coercion.

Defined Under Namespace

Classes: Coercer

Instance Method Summary collapse

Instance Method Details

#coercerCoercer

Expose a Coercer as a property.

A Coercer will be instantiated as needed on first access.

Returns:

  • (Coercer)

    Return the object which will be used to handle coercions.



82
83
84
# File 'lib/brine/coercing.rb', line 82

def coercer
  @coercer ||= Coercer.new
end