Sha256: e56249fa16bef4ec43231dcda5be441aa8aaa90f53126fec7990d2c9087761ed

Contents?: true

Size: 324 Bytes

Versions: 8

Compression:

Stored size: 324 Bytes

Contents

require "cloud_shaped/dsl"
require "cloud_shaped/template_builder"
require "cloud_shaped/version"

module CloudShaped

  def self.template(&block)
    TemplateBuilder.new.tap do |builder|
      if block.arity.zero?
        builder.instance_eval(&block)
      else
        yield builder
      end
    end.template
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cloud_shaped-1.1.0 lib/cloud_shaped.rb
cloud_shaped-1.0.0 lib/cloud_shaped.rb
cloud_shaped-0.1.3 lib/cloud_shaped.rb
cloud_shaped-0.1.2 lib/cloud_shaped.rb
cloud_shaped-0.1.1 lib/cloud_shaped.rb
cloud_shaped-0.1.0 lib/cloud_shaped.rb
cloud_shaped-0.0.2 lib/cloud_shaped.rb
cloud_shaped-0.0.1 lib/cloud_shaped.rb