Sha256: 250274ab316fc3d50e2c4be36753678cc5bbb25d7020adfa8fbc70f4e630d56e

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 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)
        build!(self, *args).new(*args) # Uber::Builder#build!.
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cells-4.1.5 lib/cell/builder.rb
cells-4.1.4 lib/cell/builder.rb