Module: Hud

Defined in:
lib/hud.rb,
lib/hud/version.rb

Defined Under Namespace

Modules: Middleware Classes: Display

Constant Summary collapse

VERSION =
'2.6.0'

Class Method Summary collapse

Class Method Details

.configurationObject



14
15
16
# File 'lib/hud.rb', line 14

def self.configuration
  @configuration ||= OpenStruct.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



18
19
20
21
22
# File 'lib/hud.rb', line 18

def self.configure
  configuration.components_dirs = []
  configuration.base_path = Pathname.new(Rack::App::Utils.pwd) 
  yield(configuration)
end