module Fend::Plugins::Coercions::ClassMethods

Attributes

type_schema[RW]

Public Instance Methods

coerce(type_schema_hash) click to toggle source
# File lib/fend/plugins/coercions.rb, line 208
def coerce(type_schema_hash)
  @type_schema = type_schema_hash
end
inherited(subclass) click to toggle source
Calls superclass method
# File lib/fend/plugins/coercions.rb, line 201
def inherited(subclass)
  super
  coerce_class = Class.new(self::Coerce)
  coerce_class.fend_class = subclass
  subclass.const_set(:Coerce, coerce_class)
end