Sha256: 9e5a054bab25a73406669312c74c587afbfc08d31703caea7b3fc7567043b8aa

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

require 'active_support/inflector'

spec = Gem::Specification.find_by_name("spinning_wheel")
gem_root = spec.gem_dir

Dir[File.join(gem_root, "lib", "spinning_wheel", "**/*.rb")].sort.each do |file|
  require file
end

module SpinningWheel

  @fabrics = Hash.new

  def self.create(name)
    @fabrics[name].build
  end

  def self.register_fabric(fabric)
    @fabrics[fabric.name] = fabric
  end
end

    # def initialize(&block)
    #   instance_eval(&block)
    # end

    # def fabric(options, &block)
    #   fabric 
    #   # fabric = SpinningWheel::Fabric.new(options)
    #   # object = fabric.create(&block)
    #   # register(fabric.name, object)
    # end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spinning_wheel-0.1.0 lib/spinning_wheel.rb