Module: Waves

Defined in:
lib/runtime/application.rb,
lib/views/mixin.rb,
lib/helpers/form.rb,
lib/helpers/view.rb,
lib/helpers/model.rb,
lib/helpers/common.rb,
lib/runtime/logger.rb,
lib/runtime/server.rb,
lib/verify/mapping.rb,
lib/verify/request.rb,
lib/mapping/mapping.rb,
lib/renderers/mixin.rb,
lib/runtime/console.rb,
lib/runtime/request.rb,
lib/runtime/session.rb,
lib/dispatchers/base.rb,
lib/renderers/erubis.rb,
lib/runtime/response.rb,
lib/controllers/mixin.rb,
lib/renderers/markaby.rb,
lib/foundations/simple.rb,
lib/helpers/formatting.rb,
lib/runtime/mime_types.rb,
lib/dispatchers/default.rb,
lib/foundations/default.rb,
lib/mapping/pretty_urls.rb,
lib/layers/simple_errors.rb,
lib/layers/default_errors.rb,
lib/runtime/configuration.rb,
lib/runtime/response_mixin.rb,
lib/runtime/response_proxy.rb

Overview

See the README for an overview.

Defined Under Namespace

Modules: Configurations, Controllers, Dispatchers, Foundations, Helpers, Layers, Logger, Mapping, MimeTypes, Renderers, ResponseMixin, Verify, Views Classes: Application, Console, Request, Response, ResponseProxy, Server, Session

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.applicationObject (readonly)

Access the principal Waves application.



7
8
9
# File 'lib/runtime/application.rb', line 7

def application
  @application
end

Class Method Details

.<<(app) ⇒ Object

Register a module as a Waves application. Also, initialize the database connection if necessary.



11
12
13
14
# File 'lib/runtime/application.rb', line 11

def << ( app )
  @application = app if Module === app
  app.database if app.respond_to? 'database'
end

.instanceObject



16
# File 'lib/runtime/application.rb', line 16

def instance ; Waves::Application.instance ; end

.method_missing(name, *args, &block) ⇒ Object



18
19
20
# File 'lib/runtime/application.rb', line 18

def method_missing(name,*args,&block)
  instance.send(name,*args,&block)
end