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
108 |
# File 'lib/tebako-runtime.rb', line 108 alias original_require require |
#require(name) ⇒ Object
109 110 111 112 113 114 115 |
# File 'lib/tebako-runtime.rb', line 109 def require(name) if ENV["TEBAKO_PASS_THROUGH"] TebakoRuntime.process_pass_through name else TebakoRuntime.process_all name end end |