Sha256: 6f1686924fa74f2834b2879d26417ebfa20d63b5525e76d885f4ad2a71bced5d

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

class AssociationHelper
  
  def initialize #:nodoc
    
  end
  
  def next(sequence) #:nodoc
    Machine.next(sequence)
  end
  
  def method_missing(name, *args) #:nodoc
    if Machine.machines.has_key?(name)
      Machine.machines[name].build(*args)
    end
  end  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aub-machine-1.0.0 lib/machine/association_helper.rb
aub-machine-1.0.1 lib/machine/association_helper.rb
aub-machine-1.0.2 lib/machine/association_helper.rb
aub-machine-1.0.3 lib/machine/association_helper.rb