Class: Flatter::Mapping::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/flatter/mapping/factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Factory

Returns a new instance of Factory.



3
4
5
# File 'lib/flatter/mapping/factory.rb', line 3

def initialize(*args)
  @args = args
end

Instance Method Details

#create(mapper) ⇒ Object



7
8
9
# File 'lib/flatter/mapping/factory.rb', line 7

def create(mapper)
  Mapping.new(mapper, *@args)
end