Module: Ruuuby::Attribute::Includable::SyntaxCache

Included in:
Math::Space::BooleanSpace, MetaData::RuuubyEngine, String, ThetaAngle
Defined in:
lib/ruuuby/module/attribute/includable/syntax_cache.rb

Overview

provide functionality to automatically apply the Class-attribute: SyntaxCache

Class Method Summary collapse

Class Method Details

.included(kclass) ⇒ Class

ensure the instance of Class that is currently including Module(SyntaxCache) will extend the Extendable: SyntaxCache and then perform a cache_warmup

Parameters:

  • kclass (Class)

Returns:

  • (Class)

    kclass



20
21
22
23
# File 'lib/ruuuby/module/attribute/includable/syntax_cache.rb', line 20

def self.included(kclass)
  kclass.extend(::Ruuuby::Attribute::Extendable::SyntaxCache)
  kclass.cache_warmup(kclass)
end