Sha256: ed21bbd012a5154a793471eae6ae713faf0454d3cae3b4f2a9dadd33b9489283

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

module Blueprints
  # Class that blueprint blocks are evaluated against. Allows you to access options that were passed to build method.
  class Context
    attr_accessor :options

    def build(*names)
      Namespace.root.build(*names)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blueprints-0.5.1 lib/blueprints/context.rb
blueprints-0.5.0 lib/blueprints/context.rb