Module: Guides

Defined in:
lib/guides.rb,
lib/guides/cli.rb,
lib/guides/new.rb,
lib/guides/helpers.rb,
lib/guides/indexer.rb,
lib/guides/version.rb,
lib/guides/generator.rb,
lib/guides/levenshtein.rb,
lib/guides/w3c_validator.rb

Defined Under Namespace

Modules: Helpers, Levenshtein Classes: CLI, Generator, Indexer, New, Validator

Constant Summary collapse

VERSION =
"0.5.0"

Class Method Summary collapse

Class Method Details

.metaObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/guides.rb', line 14

def meta
  @meta ||= begin
    if File.exist?("#{root}/guides.yml")
      YAML.load_file("#{root}/guides.yml")
      # TODO: Sanity check the output
    else
      raise "#{root}/guides.yml was not found"
    end
  end
end

.rootObject



9
10
11
12
# File 'lib/guides.rb', line 9

def root
  # TODO: Search for guides.yml
  File.expand_path(Dir.pwd)
end