Sha256: fbf13a72bed9176cdf2a18d2006a1d22c260340cc50351e1e4515e61cd9e7f88

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

require "declarative/builder"

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

    module ClassMethods
      def build(*args)
        build!(self, *args).new(*args) # Declarative::Builder#build!.
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cells-4.1.8 lib/cell/builder.rb
cells-4.1.7 lib/cell/builder.rb
cells-4.1.6 lib/cell/builder.rb