Sha256: dda3db96e4f5f5681d644027a3eadd27ad2f4ce4940a634cd05a9d456101df93
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module Stashify class Directory attr_reader :name, :files def initialize(name:, files: []) @name = name @files = files end def find(name) if directory?(name) directory(name) else file(name) end end def write(file) if file.is_a?(Stashify::Directory) write_directory(file) else write_file(file) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stashify-1.0.2 | lib/stashify/directory.rb |