Module: HeavyControl::Extensions::Logging
- Defined in:
- lib/heavy_control/extensions/logging.rb
Instance Method Summary collapse
- #load_missing_constant(from_mod, const_name) ⇒ Object
- #require_or_load(file_name, const_path = nil) ⇒ Object
- #search_for_file(path_suffix) ⇒ Object
Instance Method Details
#load_missing_constant(from_mod, const_name) ⇒ Object
6 7 8 9 10 |
# File 'lib/heavy_control/extensions/logging.rb', line 6 def load_missing_constant(from_mod, const_name) hc_log "Load missing constant '#{const_name}' from #{from_mod}" super(from_mod, const_name) end |
#require_or_load(file_name, const_path = nil) ⇒ Object
12 13 14 15 16 |
# File 'lib/heavy_control/extensions/logging.rb', line 12 def require_or_load(file_name, const_path = nil) hc_log "Require of load '#{file_name}' with const_path '#{const_path}'" super(file_name, const_path) end |
#search_for_file(path_suffix) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/heavy_control/extensions/logging.rb', line 18 def search_for_file(path_suffix) hc_log "Search for file with suffix '#{path_suffix}'" super(path_suffix).tap do |result| hc_log("and found '#{result}'") end end |