Class: PuppetLanguageServerSidecar::Cache::Base
- Inherits:
-
Object
- Object
- PuppetLanguageServerSidecar::Cache::Base
- Defined in:
- lib/puppet-languageserver-sidecar/cache/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cache_options ⇒ Object
readonly
Returns the value of attribute cache_options.
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#clear! ⇒ Object
WARNING - This method is only intended for testing the cache and should not be used for normal operations.
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #load(_absolute_path, _section) ⇒ Object
- #save(_absolute_path, _section, _content_string) ⇒ Object
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( = {}) @cache_options = end |
Instance Attribute Details
#cache_options ⇒ Object (readonly)
Returns the value of attribute cache_options.
11 12 13 |
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 11 def @cache_options end |
Instance Method Details
#active? ⇒ 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
31 32 33 |
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 31 def clear! raise NotImplementedError end |
#load(_absolute_path, _section) ⇒ Object
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
25 26 27 |
# File 'lib/puppet-languageserver-sidecar/cache/base.rb', line 25 def save(_absolute_path, _section, _content_string) raise NotImplementedError end |