Class: PathRewrite::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/path_rewrite/configuration.rb

Instance Method Summary collapse

Instance Method Details

#check_redirect=(value) ⇒ Object



4
5
6
# File 'lib/path_rewrite/configuration.rb', line 4

def check_redirect=(value)
  @check_redirect = value
end

#check_redirect?Boolean

Returns:

  • (Boolean)


8
9
10
11
12
# File 'lib/path_rewrite/configuration.rb', line 8

def check_redirect?
  return @check_redirect unless @check_redirect.respond_to?(:call)

  @check_redirect.call
end