Sha256: 49a978eaf406ecdf592a5dcce4036e9a14f162f7354f30ec8758cfca6346d185
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
# # Copyright (c) 2018 Patrick Thomas. All rights reserved. # require 'cayuga/tools/loggable' require 'cayuga/object/object' require 'cayuga/object/singleton' module Cayuga module Object class Constants extend Singleton include Object include Tools::Loggable def directory(constant) directories[constant.symbolize] end private_class_method :new private attr_reader :factory, :directories def initialize(factory) @factory = factory factory[Logger].log_log!(self.class, filename: log_file, filter: Regexp.new("#{self.class.stringify}")) @directories = factory.directory_constants end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cayuga-0.0.2 | lib/cayuga/object/constants.rb |