require 'yaml' require 'pathname' module Jarl class JarlFile attr_reader :path, :name, :applications def initialize(path) @path = Pathname.new(path) @name = @path.basename('.jarl') load end private def load @applications = YAML.load File.read(path) end end # class JarlFile end # module Jarl