module Flatter::Mapper::Mounting::ClassMethods
Public Instance Methods
mount(name, **opts)
click to toggle source
# File lib/flatter/mapper/mounting.rb, line 19 def mount(name, **opts) factory_options = opts.reverse_merge(mounter_name: self.name || label) mountings[name.to_s] = Flatter::Mapper::Factory.new(name, **factory_options) end
mountings()
click to toggle source
# File lib/flatter/mapper/mounting.rb, line 24 def mountings @mountings ||= {} end
mountings=(val)
click to toggle source
# File lib/flatter/mapper/mounting.rb, line 28 def mountings=(val) @mountings = val end