Class: Rack::Perf::NormalizePath

Inherits:
Struct
  • Object
show all
Defined in:
lib/rack/perf.rb

Instance Method Summary collapse

Instance Method Details

#pathObject



63
64
65
66
67
# File 'lib/rack/perf.rb', line 63

def path
  normalize_path
rescue ActionController::RoutingError
  nil
end

#path?Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/rack/perf.rb', line 59

def path?
  path != nil
end