Sha256: dfc221f52f7f4e0d91324fd6a3cb8ed348d2a430ec2f4afe113e02c570194d8c

Contents?: true

Size: 255 Bytes

Versions: 10

Compression:

Stored size: 255 Bytes

Contents

module Danica
  class Builder
    include DSL

    def build(*vars, &block)
      Expression.create(*vars, &block).tap do |expression|
        return expression.expression_block if expression.expression_block.is_a? Expressable
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
danica-2.7.4 lib/danica/builder.rb
danica-2.7.3 lib/danica/builder.rb
danica-2.7.2 lib/danica/builder.rb
danica-2.7.1 lib/danica/builder.rb
danica-2.6.4 lib/danica/builder.rb
danica-2.6.3 lib/danica/builder.rb
danica-2.6.2 lib/danica/builder.rb
danica-2.6.1 lib/danica/builder.rb
danica-2.6.0 lib/danica/builder.rb
danica-2.5.1 lib/danica/builder.rb