Module: JekyllIS::Images::Context::Error
- Includes:
- Config
- Included in:
- JekyllIS::Images::Context
- Defined in:
- lib/jekyll-is/images/context/error.rb
Instance Method Summary collapse
Methods included from Config
#cache_path, #config, #detect_format, #options, #target_path_prefix
Instance Method Details
#abort_on_error? ⇒ Boolean
17 18 19 |
# File 'lib/jekyll-is/images/context/error.rb', line 17 def abort_on_error? @abort_on_error ||= config(ABORT_KEY) end |
#error(message) ⇒ void
This method returns an undefined value.
23 24 25 26 27 28 29 |
# File 'lib/jekyll-is/images/context/error.rb', line 23 def error if abort_on_error? Jekyll::logger.abort_with caller_locations(1, 1).first.label, else Jekyll::logger.error caller_locations(1, 1).first.label, end end |
#warning(message) ⇒ void
This method returns an undefined value.
33 34 35 |
# File 'lib/jekyll-is/images/context/error.rb', line 33 def warning Jekyll::logger.warn caller_locations(1, 1).first.label, end |