Sha256: 505bafe443842d945d92c54b46da09f6389d86814542d7a0093e159afc1c796e
Contents?: true
Size: 837 Bytes
Versions: 5
Compression:
Stored size: 837 Bytes
Contents
# # Copyright (c) 2018 Patrick Thomas. All rights reserved. # require 'cayuga' module Cayuga module Object # noinspection RubyModuleAsSuperclassInspection class Constants < Singleton def constant(constant) constants[constant.symbolize] end alias [] :constant def directory(constant) directories[constant.symbolize] end def file(constant) files[constant.symbolize] end private_class_method :new private attr_reader :factory, :constants, :directories, :files, :repositories def initialize(factory, configuration) super @constants = configuration[:constants] @directories = configuration[:directories] @files = configuration[:files] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems