Module: Padrino::Performance::JSON::InfectedRequire

Defined in:
padrino-performance/lib/suites/json.rb

Instance Method Summary collapse

Instance Method Details

#require(*args) ⇒ Object



5
6
7
8
9
# File 'padrino-performance/lib/suites/json.rb', line 5

def require(*args)
  lib = args.first
  JSON.loaded_lib!(lib) if JSON.registered_libs.include? lib
  super
end