Module: Momentum::DelegateModule

Included in:
Delegate
Defined in:
lib/motion-momentum/delegate/delegate_module.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data.



11
12
13
# File 'lib/motion-momentum/delegate/delegate_module.rb', line 11

def data
  @data
end

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/motion-momentum/delegate/delegate_module.rb', line 4

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#initializeObject



13
14
15
# File 'lib/motion-momentum/delegate/delegate_module.rb', line 13

def initialize
  self.data = {}
end