Sha256: b575d2dde97d4e9e5be66132bd4acdbb552b2d5b2315d23726d5d8b9ce6b79be

Contents?: true

Size: 461 Bytes

Versions: 136

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'eac_ruby_utils/context'

module EacFs
  class Contexts
    TYPES = %i[cache config data].freeze

    class << self
      TYPES.each do |type|
        class_eval <<~CODE, __FILE__, __LINE__ + 1
          # @return [EacRubyUtils::Context<EacFs::StorageTree>]
          def #{type}
            @#{type} ||= ::EacRubyUtils::Context.new
          end
        CODE
      end
    end
  end
end

Version data entries

136 entries across 136 versions & 3 rubygems

Version Path
eac_tools-0.76.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.75.2 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.75.1 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.75.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.74.1 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.74.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.73.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.72.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.70.1 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.70.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.69.1 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.69.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.68.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.67.1 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.67.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.66.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.65.1 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.65.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.64.0 sub/eac_fs/lib/eac_fs/contexts.rb
eac_tools-0.63.0 sub/eac_fs/lib/eac_fs/contexts.rb