class Troy::Meta
def content
def content @content ||= raw.gsub(REGEX, "") end
def data
def data @data ||= REGEX.match?(raw) ? YAML.unsafe_load(raw[REGEX, 1]) : {} end
def initialize(file)
def initialize(file) @file = file end
def method_missing(name, *_args)
def method_missing(name, *_args) data[name.to_s] end
def raw
def raw @raw ||= File.read(file) end
def respond_to_missing?(_method, _include_private = false)
def respond_to_missing?(_method, _include_private = false) true end