Class: Js::Preflight::Lint
- Inherits:
-
Object
- Object
- Js::Preflight::Lint
- Defined in:
- lib/js-preflight/lint.rb
Instance Attribute Summary collapse
-
#executable_path ⇒ Object
readonly
Returns the value of attribute executable_path.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Class Method Summary collapse
Instance Method Summary collapse
- #clean? ⇒ Boolean
- #errors ⇒ Object
-
#initialize(filename, options = {}) ⇒ Lint
constructor
A new instance of Lint.
Constructor Details
Instance Attribute Details
#executable_path ⇒ Object (readonly)
Returns the value of attribute executable_path.
4 5 6 |
# File 'lib/js-preflight/lint.rb', line 4 def executable_path @executable_path end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/js-preflight/lint.rb', line 4 def filename @filename end |
Class Method Details
Instance Method Details
#clean? ⇒ Boolean
14 15 16 |
# File 'lib/js-preflight/lint.rb', line 14 def clean? errors == "jslint: No problems found." end |
#errors ⇒ Object
10 11 12 |
# File 'lib/js-preflight/lint.rb', line 10 def errors @errors ||= lint end |