Class: Padrino::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/support_lite.rb

Class Method Summary collapse

Class Method Details

.silence_outputObject

Silences output verbosity level so load errors are not visible when safe_load(file)



252
253
254
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/support_lite.rb', line 252

def self.silence_output
  @verbosity_level, $-v = $-v, nil
end

.unsilence_outputObject



256
257
258
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/support_lite.rb', line 256

def self.unsilence_output
  $-v = @verbosity_level
end