Class: Adhearsion::Components::ComponentManager::ComponentMethodDefinitionContainer

Inherits:
Module
  • Object
show all
Defined in:
lib/adhearsion/component_manager.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Module

#relationships

Constructor Details

#initialize(*scopes, &block) ⇒ ComponentMethodDefinitionContainer

Returns a new instance of ComponentMethodDefinitionContainer.



186
187
188
189
# File 'lib/adhearsion/component_manager.rb', line 186

def initialize(*scopes, &block)
  @scopes = []
  super(&block)
end

Instance Attribute Details

#scopesObject (readonly)

Returns the value of attribute scopes.



185
186
187
# File 'lib/adhearsion/component_manager.rb', line 185

def scopes
  @scopes
end

Class Method Details

.method_added(method_name) ⇒ Object



179
180
181
182
# File 'lib/adhearsion/component_manager.rb', line 179

def method_added(method_name)
  @methods ||= []
  @methods << method_name
end