Class: FarmingEngineers::Invoices::Common::History

Inherits:
Array
  • Object
show all
Defined in:
lib/farming_engineers/invoices/common.rb

Direct Known Subclasses

Eggs::History

Class Method Summary collapse

Class Method Details

.generator(name, klass) ⇒ Object



47
48
49
50
51
# File 'lib/farming_engineers/invoices/common.rb', line 47

def self.generator(name, klass)
  define_method(name) do |*args|
    push klass.new(*args)
  end
end