module Flatter::Mapper::Traits::FactoryMethods
Attributes
extension[RW]
Public Instance Methods
create(*)
click to toggle source
Calls superclass method
# File lib/flatter/mapper/traits.rb, line 16 def create(*) super.tap do |mounting| mounting.set_traits(traits) mounting.trait! if trait? mounting.extend_with(extension) if extension.present? end end
trait?()
click to toggle source
# File lib/flatter/mapper/traits.rb, line 12 def trait? !!options[:trait] end
traits()
click to toggle source
# File lib/flatter/mapper/traits.rb, line 8 def traits Array(options[:traits]) end