Class: PlaygroundBookLint::ContentsLinter
- Inherits:
-
AbstractLinter
- Object
- AbstractLinter
- PlaygroundBookLint::ContentsLinter
- Defined in:
- lib/playground_book_lint/contents_linter.rb
Instance Attribute Summary collapse
-
#root_manfiest_linter ⇒ Object
Returns the value of attribute root_manfiest_linter.
Instance Method Summary collapse
-
#initialize(root_manfiest_linter = RootManifestLinter.new()) ⇒ ContentsLinter
constructor
A new instance of ContentsLinter.
- #lint ⇒ Object
Methods inherited from AbstractLinter
Constructor Details
#initialize(root_manfiest_linter = RootManifestLinter.new()) ⇒ ContentsLinter
Returns a new instance of ContentsLinter.
8 9 10 |
# File 'lib/playground_book_lint/contents_linter.rb', line 8 def initialize(root_manfiest_linter = RootManifestLinter.new()) @root_manfiest_linter = root_manfiest_linter end |
Instance Attribute Details
#root_manfiest_linter ⇒ Object
Returns the value of attribute root_manfiest_linter.
6 7 8 |
# File 'lib/playground_book_lint/contents_linter.rb', line 6 def root_manfiest_linter @root_manfiest_linter end |
Instance Method Details
#lint ⇒ Object
12 13 14 15 16 17 |
# File 'lib/playground_book_lint/contents_linter.rb', line 12 def lint Dir.chdir 'Contents' do root_manfiest_linter.lint() # TODO: Other linting? end end |