Module: Kernel
- Defined in:
- lib/tebako-runtime.rb
Overview
Some would call it ‘monkey patching’ but in reality we are adding adapters to gems that shall be aware that they are running in tebako environment
Instance Method Summary collapse
Instance Method Details
#original_require ⇒ Object
100 |
# File 'lib/tebako-runtime.rb', line 100 alias original_require require |
#require(name) ⇒ Object
101 102 103 104 105 106 107 |
# File 'lib/tebako-runtime.rb', line 101 def require(name) if ENV["TEBAKO_PASS_THROUGH"] TebakoRuntime.process_pass_through name else TebakoRuntime.process_all name end end |