Module: Fend::Plugins::Coercions::ClassMethods
- Defined in:
- lib/fend/plugins/coercions.rb
Instance Attribute Summary collapse
-
#type_schema ⇒ Object
Returns the value of attribute type_schema.
Instance Method Summary collapse
Instance Attribute Details
#type_schema ⇒ Object
Returns the value of attribute type_schema.
199 200 201 |
# File 'lib/fend/plugins/coercions.rb', line 199 def type_schema @type_schema end |
Instance Method Details
#coerce(type_schema_hash) ⇒ Object
208 209 210 |
# File 'lib/fend/plugins/coercions.rb', line 208 def coerce(type_schema_hash) @type_schema = type_schema_hash end |
#inherited(subclass) ⇒ Object
201 202 203 204 205 206 |
# 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 |