Class: Mercurial::RootNode

Inherits:
Node
  • Object
show all
Defined in:
lib/mercurial-ruby/root_node.rb

Instance Attribute Summary

Attributes inherited from Node

#executable, #fmode, #nodeid, #parent, #repository

Instance Method Summary collapse

Methods inherited from Node

#blame, #contents, #diff_to, #entries, #has_entry?, #initialize, #path_without_parent, #revision, #size

Methods included from Helper

#hg, #hg_to_array, #shell

Constructor Details

This class inherits a constructor from Mercurial::Node

Instance Method Details

#binary?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/mercurial-ruby/root_node.rb', line 17

def binary?
  false
end

#directory?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/mercurial-ruby/root_node.rb', line 5

def directory?
  true
end

#file?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/mercurial-ruby/root_node.rb', line 9

def file?
  false
end

#nameObject



21
22
23
# File 'lib/mercurial-ruby/root_node.rb', line 21

def name
  ''
end

#pathObject



25
26
27
# File 'lib/mercurial-ruby/root_node.rb', line 25

def path
  ''
end

#root?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/mercurial-ruby/root_node.rb', line 13

def root?
  true
end