Sha256: cdb4eb45f556b3a122347cce53cba7e3a5b79f3417e559541dde6c4710a1ae36

Contents?: true

Size: 268 Bytes

Versions: 3

Compression:

Stored size: 268 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, :attributes

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blueprints-0.6.2 lib/blueprints/context.rb
blueprints-0.6.1 lib/blueprints/context.rb
blueprints-0.6.0 lib/blueprints/context.rb