Sha256: 73982fe113af5f53afe806fa9d4f81379d62465cfd0697474c6403790b30afd2

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 Bytes

Contents

require "uber/builder"

module Cell
  module Builder
    def self.included(base)
      base.send :include, Uber::Builder
      base.extend ClassMethods
    end

    module ClassMethods
      def build(*args)
        class_builder.call(*args).new(*args) # Uber::Builder::class_builder.
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cells-4.1.3 lib/cell/builder.rb
cells-4.1.2 lib/cell/builder.rb
cells-4.1.1 lib/cell/builder.rb
cells-4.1.0 lib/cell/builder.rb
cells-4.1.0.rc1 lib/cell/builder.rb