# frozen_string_literal: true require 'hako/yaml_loader' module Hako class Application attr_reader :id, :root_path, :yaml def initialize(yaml_path) path = Pathname.new(yaml_path) @id = path.basename.sub_ext('').to_s @root_path = path.parent @yaml = YamlLoader.load(path) end end end