Method: MetaProject::ScmWeb::Pathname#child

Defined in:
lib/meta_project/scm_web/pathname.rb

#child(basename, revision_identifier = nil, directory = true) ⇒ Object

Returns a Pathname at the relative_path from this directory. Note: This only works if this instance is a directory?



30
31
32
33
# File 'lib/meta_project/scm_web/pathname.rb', line 30

def child(basename, revision_identifier=nil, directory=true)
  raise "Can't create children for files" unless @directory
  Pathname.new(@browser, self, basename, revision_identifier, directory)
end