Module: Redirect

Defined in:
lib/redirect/app.rb,
lib/redirect/version.rb,
lib/redirect/redirect.rb

Defined Under Namespace

Classes: App, Data

Constant Summary collapse

VERSION =
"0.4.3"

Class Method Summary collapse

Class Method Details

.appObject



24
25
26
# File 'lib/redirect/redirect.rb', line 24

def self.app
  @app
end

.app=(app) ⇒ Object



20
21
22
# File 'lib/redirect/redirect.rb', line 20

def self.app= app
  @app = app
end

.autorunObject



15
16
17
18
# File 'lib/redirect/redirect.rb', line 15

def self.autorun
  @autorun = true unless @autorun == false
  @autorun
end

.autorun=(autorun) ⇒ Object



11
12
13
# File 'lib/redirect/redirect.rb', line 11

def self.autorun= autorun
  @autorun = autorun
end

.default_codeObject



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

def self.default_code
  @default_code ||= 301
end

.default_code=(default_code) ⇒ Object



3
4
5
# File 'lib/redirect/redirect.rb', line 3

def self.default_code= default_code
  @default_code = default_code
end