Module: Racket

Defined in:
lib/racket/current.rb,
lib/racket.rb,
lib/racket/utils.rb,
lib/racket/router.rb,
lib/racket/request.rb,
lib/racket/session.rb,
lib/racket/version.rb,
lib/racket/response.rb,
lib/racket/controller.rb,
lib/racket/view_cache.rb,
lib/racket/application.rb

Overview

Racket - The noisy Rack MVC framework Copyright © 2015 Lars Olsson <[email protected]>

This file is part of Racket.

Racket is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Racket is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with Racket. If not, see <www.gnu.org/licenses/>.

Defined Under Namespace

Modules: Version Classes: Application, Controller, Current, Request, Response, Router, Session, Utils, ViewCache

Class Method Summary collapse

Class Method Details

.require(*args) ⇒ Object

Requires a file using the current application directory as a base path.

Parameters:

  • args (Object)

Returns:

  • nil



39
40
41
42
# File 'lib/racket.rb', line 39

def require(*args)
  Application.require(*args)
  nil
end

.versionString

Returns the current version of Racket.

Returns:

  • (String)


47
48
49
50
# File 'lib/racket.rb', line 47

def version
  require_relative 'racket/version.rb'
  Version.current
end