class LazyNames::Logger
Public Class Methods
warn_duplicate_definition(errors, config_path)
click to toggle source
# File lib/lazy_names/logger.rb, line 18 def warn_duplicate_definition(errors, config_path) return if errors.empty? message = <<~MSG Error loading lazy_names gem. Found #{errors.size} already defined constants. Using same lazy names for different constants may lead to unexpected results Avoid duplications in your config file. #{config_path} \n MSG warn(message) end
warn_empty_definitions(errors, config_path)
click to toggle source
# File lib/lazy_names/logger.rb, line 33 def warn_empty_definitions(errors, config_path) return unless errors message = <<~MSG Error loading lazy_names gem. Seems like you misspelled namespace in config. #{config_path} Please ensure word definitions exists in config or check .lazy_names.tt.yml for consistency. MSG warn(message) end
warn_undefined(errors, config_path)
click to toggle source
# File lib/lazy_names/logger.rb, line 4 def warn_undefined(errors, config_path) return if errors.empty? message = <<~MSG Error loading lazy_names gem. Found #{errors.size} undefined constants. Please check spelling for #{errors.join(', ')} #{config_path} \n MSG warn(message) end