Sha256: 5b38dcea47b2f237f22740a0a05879e5a23d49e21098e82313d310a94746e4b6
Contents?: true
Size: 329 Bytes
Versions: 23
Compression:
Stored size: 329 Bytes
Contents
# 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.new.load(path) end end end
Version data entries
23 entries across 23 versions & 1 rubygems