class Begin::Config

The root-level template configuration structure. A class representation of the template config file (.begin.yml)

Attributes

tags[R]

Public Class Methods

from_file(path) click to toggle source
# File lib/begin/config.rb, line 15
def self.from_file(path)
  if path.exists?
    config = YAML.load_file path
    tags = HashTag.from_config_hash(config)
    Config.new tags
  else
    {}
  end
end
new(tags) click to toggle source
# File lib/begin/config.rb, line 11
def initialize(tags)
  @tags = tags
end