Class: PuppetLanguageServerSidecar::Cache::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet-languageserver-sidecar/cache/base.rb

Direct Known Subclasses

FileSystem, Null

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



13
14
15
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 13

def initialize(options = {})
  @cache_options = options
end

Instance Attribute Details

#cache_optionsObject (readonly)

Returns the value of attribute cache_options.



11
12
13
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 11

def cache_options
  @cache_options
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 17

def active?
  false
end

#clear!Object

WARNING - This method is only intended for testing the cache and should not be used for normal operations

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 31

def clear!
  raise NotImplementedError
end

#load(_absolute_path, _section) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 21

def load(_absolute_path, _section)
  raise NotImplementedError
end

#save(_absolute_path, _section, _content_string) ⇒ Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 25

def save(_absolute_path, _section, _content_string)
  raise NotImplementedError
end