Module: Brine::Coercing

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

Overview

A module which allows mixing in Corcer behavior.

Defined Under Namespace

Classes: Coercer

Instance Method Summary collapse

Instance Method Details

#coercerCoercer

The coercer instance mixed in as a property.

Will instantiate a Coercer if needed on first access.

Returns:

  • (Coercer)

    The object which will be used to handle coercions.



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

def coercer
  @coercer ||= Coercer.new
end