Sha256: a0ec1054dac7d584c2b1761732b391c75cbcb33090090a7a579c839b3d95b477

Contents?: true

Size: 382 Bytes

Versions: 13

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

require 'eac_fs/patches/module/fs_cache'

class Object
  # @return [EacFs::Cache]
  def fs_cache
    oid = fs_cache_object_id
    oid = [oid.to_s] unless oid.is_a?(::Enumerable)
    oid.inject(self.class.fs_cache) { |a, e| a.child(e.to_s) }
  end

  # @return [String, Array<String>]
  def fs_cache_object_id
    raise 'Abstract method hit'
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
avm-tools-0.113.6 sub/eac_fs/lib/eac_fs/patches/object/fs_cache.rb
avm-tools-0.113.5 sub/eac_fs/lib/eac_fs/patches/object/fs_cache.rb
avm-tools-0.113.4 sub/eac_fs/lib/eac_fs/patches/object/fs_cache.rb
eac_fs-0.9.0 lib/eac_fs/patches/object/fs_cache.rb
avm-tools-0.113.3 sub/eac_fs/lib/eac_fs/patches/object/fs_cache.rb
eac_fs-0.8.1 lib/eac_fs/patches/object/fs_cache.rb
eac_fs-0.8.0 lib/eac_fs/patches/object/fs_cache.rb
avm-tools-0.113.2 sub/eac_fs/lib/eac_fs/patches/object/fs_cache.rb
eac_fs-0.7.0 lib/eac_fs/patches/object/fs_cache.rb
ehbrs-tools-0.28.3 vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb
avm-tools-0.110.0 vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb
eac_fs-0.6.0 lib/eac_fs/patches/object/fs_cache.rb
avm-tools-0.109.1 vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb