Attribute extension which raises CoercionError when coercion failed
@see [Attribute#coerce]
@raises [CoercionError] when coercer failed
@api public
# File lib/virtus/attribute/strict.rb, line 13 def coerce(*) output = super if value_coerced?(output) || !required? && output.nil? output else raise CoercionError.new(output, self) end end
Generated with the Darkfish Rdoc Generator 2.