lib/bhook/workspace.rb in bhook-0.1.3 vs lib/bhook/workspace.rb in bhook-0.1.4

- old
+ new

@@ -2,11 +2,11 @@ # frozen_string_literal: true module Bhook class Workspace extend T::Sig - + sig { params(src_path: String, out_path: String, theme_path: String).void } def initialize(src_path, out_path, theme_path) @src_path = T.let(Pathname.new(src_path).expand_path, Pathname) @out_path = T.let(Pathname.new(out_path).expand_path, Pathname) @theme = T.let(Theme.new(theme_path), Bhook::Theme) @@ -34,12 +34,12 @@ sig { returns(T::Array[MdFile]) } def all_md_files root_dir.all_md_files end - private - sig { returns(Bhook::RootDirectory) } + private + sig { returns(Bhook::Directory) } def root_dir - RootDirectory.new(@src_path, @out_path) + Directory.new_root_directory(@src_path, @out_path) end end end