Sha256: 3c881d3bf7fe20b997ed1a3acd05981635166fa3b311022e4d3e44b3a5bcd394

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

module Blueprints
  module FileContext
    def self.blueprint(plan, &block)
      Plan.new(plan, &block)
    end

    def self.namespace(name)
      old_namespace = Namespace.root
      namespace = Namespace.new(name)
      Namespace.root = namespace
      yield
      old_namespace.add_child(namespace)
      Namespace.root = old_namespace
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blueprints-0.3.4 lib/blueprints/file_context.rb
blueprints-0.3.3 lib/blueprints/file_context.rb
blueprints-0.3.2 lib/blueprints/file_context.rb
blueprints-0.3.1 lib/blueprints/file_context.rb
blueprints-0.3.0 lib/blueprints/file_context.rb