Class: Adhearsion::Components::ComponentManager::ComponentMethodDefinitionContainer
Instance Attribute Summary collapse
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*scopes, &block) ⇒ ComponentMethodDefinitionContainer
constructor
A new instance of ComponentMethodDefinitionContainer.
Methods inherited from Module
Constructor Details
#initialize(*scopes, &block) ⇒ ComponentMethodDefinitionContainer
Returns a new instance of ComponentMethodDefinitionContainer.
251 252 253 254 |
# File 'lib/adhearsion/component_manager.rb', line 251 def initialize(*scopes, &block) @scopes = [] super(&block) end |
Instance Attribute Details
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
250 251 252 |
# File 'lib/adhearsion/component_manager.rb', line 250 def scopes @scopes end |
Class Method Details
.method_added(method_name) ⇒ Object
244 245 246 247 |
# File 'lib/adhearsion/component_manager.rb', line 244 def method_added(method_name) @methods ||= [] @methods << method_name end |