Method: RC::Interface#bootstrap_require
- Defined in:
- lib/rc/interface.rb
#bootstrap_require ⇒ Object (private)
Tap into require via loaded hook. The hook is only triggered on #require, not #load.
301 302 303 304 305 306 307 308 309 310 311 312 |
# File 'lib/rc/interface.rb', line 301 def bootstrap_require def RC.required(feature) config = RC.configuration[feature] if config config.each do |config| next unless config.apply_to_feature? config.call end end super(feature) if defined?(super) end end |