Class: PlaygroundBookLint::ContentsLinter

Inherits:
AbstractLinter show all
Defined in:
lib/playground_book_lint/contents_linter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractLinter

#fail_lint, #message, ui=

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_linterObject

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

#lintObject



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