class Playgroundbook::ContentsLinter

A linter for verifying the contents directory of a playground book

Attributes

root_manfiest_linter[RW]

Public Class Methods

new(root_manfiest_linter = RootManifestLinter.new) click to toggle source
# File lib/linter/contents_linter.rb, line 9
def initialize(root_manfiest_linter = RootManifestLinter.new)
  @root_manfiest_linter = root_manfiest_linter
end

Public Instance Methods

lint() click to toggle source
# File lib/linter/contents_linter.rb, line 13
def lint
  Dir.chdir "Contents" do
    root_manfiest_linter.lint
    # TODO: Other linting?
  end
end