class Playgroundbook::AbstractLinter

AbstractLinter provides a base implementation of a linter which a concrete linter subclass can inherit from

Attributes

ui[RW]

Public Instance Methods

fail_lint(msg) click to toggle source
# File lib/linter/abstract_linter.rb, line 14
def fail_lint(msg)
  AbstractLinter.ui.puts msg.red
  exit 1
end
message(msg) click to toggle source
# File lib/linter/abstract_linter.rb, line 19
def message(msg)
  AbstractLinter.ui.puts msg
end