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:



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

common_constructor :git, :subpath

Instance Attribute Details

#gitObject (readonly)



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

#subpathObject (readonly)

Parameters:

  • git (Array<String>)


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

Instance Method Details

#pathPathname

Returns:

  • (Pathname)


21
22
23
# File 'lib/eac_git/rspec/stubbed_git_local_repo/fs_object.rb', line 21

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