Sha256: e428cfc7e67de236277ff58ac08639bcc0664bc195d37909e2a1ad3497674ffd

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

require "diy"
require "yaml"
require "pathname"

module Minilab
  class MinilabContext #@private
    OBJECT_DEFINITION = Pathname.new(__FILE__).dirname + "objects.yml"

    def build
      if not @context
        DIY::Context.auto_require = false
        @context = DIY::Context.new(YAML.load_file(OBJECT_DEFINITION))
        @context.build_everything
      end
      @context
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minilab-2.0.1-x86-mingw32 lib/minilab/minilab_context.rb