Class: Cloudfuji::Bar
- Inherits:
-
Object
- Object
- Cloudfuji::Bar
- Defined in:
- lib/cloudfuji/bar.rb
Overview
Cloudfuji::Bar
Constant Summary collapse
- @@bar_paths =
Default to showing the bar on all paths
[/.*/]
Class Method Summary collapse
Class Method Details
.in_bar_display_path?(env) ⇒ Boolean
11 12 13 14 15 16 17 |
# File 'lib/cloudfuji/bar.rb', line 11 def self.(env) @@bar_paths.each do |path_regex| return true if env['PATH_INFO'] =~ path_regex end return false end |
.set_bar_display_paths(*paths) ⇒ Object
7 8 9 |
# File 'lib/cloudfuji/bar.rb', line 7 def self.(*paths) @@bar_paths = paths end |