Module: Spider::App::AppClass
- Included in:
- Controller, Model::BaseModel
- Defined in:
- lib/spiderfw/app.rb
Overview
This module is included Controller and BaseModel, and provides the app method, returning the class’ app.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#app ⇒ App
The app to which the object’s class belongs.
Class Method Details
.included(klass) ⇒ Object
663 664 665 |
# File 'lib/spiderfw/app.rb', line 663 def self.included(klass) klass.extend(ClassMethods) end |
Instance Method Details
#app ⇒ App
Returns The app to which the object’s class belongs.
668 669 670 |
# File 'lib/spiderfw/app.rb', line 668 def app return self.class.app end |