Module: Puppet::Util::Cacher
- Included in:
- Node::Environment
- Defined in:
- lib/puppet/util/cacher.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.extended(other) ⇒ Object
Our module has been extended in a class; we can only add the Instance methods, which become class methods in the class.
-
.included(other) ⇒ Object
Our module has been included in a class, which means the class gets the class methods and all of its instances get the instance methods.
Class Method Details
.extended(other) ⇒ Object
Our module has been extended in a class; we can only add the Instance methods, which become class methods in the class.
4 5 6 7 8 9 |
# File 'lib/puppet/util/cacher.rb', line 4 def self.extended(other) class << other extend ClassMethods include InstanceMethods end end |
.included(other) ⇒ Object
Our module has been included in a class, which means the class gets the class methods and all of its instances get the instance methods.
13 14 15 16 |
# File 'lib/puppet/util/cacher.rb', line 13 def self.included(other) other.extend(ClassMethods) other.send(:include, InstanceMethods) end |