Class: EacGit::Rspec::StubbedGitLocalRepo::FsObject

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_git/rspec/stubbed_git_local_repo/fs_object.rb

Direct Known Subclasses

Directory, File

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(git, subpath) ⇒ Object

Parameters:



16
# File 'lib/eac_git/rspec/stubbed_git_local_repo/fs_object.rb', line 16

common_constructor :git, :subpath

Instance Attribute Details

#gitObject (readonly)



# File 'lib/eac_git/rspec/stubbed_git_local_repo/fs_object.rb', line 7

#subpathObject (readonly)

Parameters:

  • git (Array<String>)


# File 'lib/eac_git/rspec/stubbed_git_local_repo/fs_object.rb', line 10

Instance Method Details

#pathPathname

Returns:

  • (Pathname)


19
20
21
# File 'lib/eac_git/rspec/stubbed_git_local_repo/fs_object.rb', line 19

def path
  git.root_path.join(*subpath)
end