Sha256: 0d6fb39f626849754aac1abe6dd5489fb8b341ed8f80eae85d56b2a1e746a9ae

Contents?: true

Size: 305 Bytes

Versions: 31

Compression:

Stored size: 305 Bytes

Contents

# -*- encoding: utf-8 -*-
module Bluepill
  def self.application(app_name, options = {}, &block)
    app_proxy = AppProxy.new(app_name, options)
    if block.arity == 0
      app_proxy.instance_eval &block
    else
      app_proxy.instance_exec(app_proxy, &block)
    end
    app_proxy.app.load
  end
end

Version data entries

31 entries across 31 versions & 6 rubygems

Version Path
bluepill-0.0.59 lib/bluepill/dsl.rb
bluepill-0.0.58 lib/bluepill/dsl.rb
bluepill-0.0.57 lib/bluepill/dsl.rb
bluepill-0.0.56 lib/bluepill/dsl.rb
bluepill-0.0.55 lib/bluepill/dsl.rb
bluepill-0.0.54 lib/bluepill/dsl.rb
bluepill-0.0.53 lib/bluepill/dsl.rb
bluepill-0.0.52 lib/bluepill/dsl.rb
ryansch-bluepill-0.0.53 lib/bluepill/dsl.rb
bluepill-0.0.51 lib/bluepill/dsl.rb
bluepill-0.0.50 lib/bluepill/dsl.rb