module Representable::Coercion::ClassMethods
Public Instance Methods
build_definition(name, options, &block)
click to toggle source
Calls superclass method
# File lib/representable/coercion.rb, line 27 def build_definition(name, options, &block) # Representable::Declarative return super unless type = options[:type] options[:render_filter] << coercer = Coercer.new(type) options[:parse_filter] << coercer super end