Sha256: 6fa21708f8cb712925f77b38e99cd6e36b818c10391ade2ff806dd2db1e39181

Contents?: true

Size: 695 Bytes

Versions: 1

Compression:

Stored size: 695 Bytes

Contents

require 'forwardable'
require 'assembly_line/registry'
require 'assembly_line/constructor'
require 'assembly_line/global_context'

module AssemblyLine
  VERSION = "0.2.0".freeze

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

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

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

module Kernel
  extend Forwardable

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

  protected

  def assembly_line_global_context
    AssemblyLine::GlobalContext
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
assembly_line-0.2.0 lib/assembly_line.rb