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

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

#appApp

Returns The app to which the object’s class belongs.

Returns:

  • (App)

    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