Module: Jat::Plugins::Cache

Defined in:
lib/jat/plugins/cache/cache.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.before_load(jat_class, **opts) ⇒ Object



10
11
12
# File 'lib/jat/plugins/cache/cache.rb', line 10

def self.before_load(jat_class, **opts)
  jat_class.plugin :to_str, **opts
end

.load(jat_class, **_opts) ⇒ Object



14
15
16
# File 'lib/jat/plugins/cache/cache.rb', line 14

def self.load(jat_class, **_opts)
  jat_class.include(InstanceMethods)
end

.plugin_nameObject



6
7
8
# File 'lib/jat/plugins/cache/cache.rb', line 6

def self.plugin_name
  :cache
end