Sha256: f0829debe3625780436444fcf45167bb615ceb92a2caacb176741cacd410507c

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 Bytes

Contents

require 'forwardable'
require 'assembly_line/registry'
require 'assembly_line/constructor'
require 'assembly_line/generic_context'

module AssemblyLine
  VERSION = "0.2.1".freeze
  extend SingleForwardable

  def self.assemble(name, context, options={})
    Registry.locate(name).assemble(context, options)
  end

  def self.define(name, &block)
    Registry.add(name, block)
  end

  def self.generic_context
    @generic_context ||= GenericContext.new
  end

  def Assemble(name, options={})
    AssemblyLine.assemble(name, self, options)
  end
end

module Kernel
  def Assemble(name, options={})
    AssemblyLine.assemble(name, AssemblyLine.generic_context, options)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
assembly_line-0.2.1 lib/assembly_line.rb