module FlatMap::OpenMapper::Mounting::ClassMethods

Mounting class macros.

Public Instance Methods

mount(*args, &block) click to toggle source

Add a mounting factory to a list of factories of a class These factories are used to create actual mounted objects, which are mappers themselves, associated to a particular mapper.

@param [*Object] args @return [Array<FlatMap::OpenMapper::Factory>]

# File lib/flat_map/open_mapper/mounting.rb, line 25
def mount(*args, &block)
  mountings << FlatMap::OpenMapper::Factory.new(*args, &block)
end
mountings() click to toggle source

List of mountings (factories) of a class.

@return [Array<FlatMap::OpenMapper>]

# File lib/flat_map/open_mapper/mounting.rb, line 32
def mountings
  @mountings ||= []
end
mountings=(val) click to toggle source

Writer for @mountings.

# File lib/flat_map/open_mapper/mounting.rb, line 37
def mountings=(val)
  @mountings = val
end