Class: Rugged::Reference

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/rugged.rb

Instance Method Summary collapse

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/ext/rugged.rb', line 3

def local?
  !remote?
end

#targets?(reference) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ext/rugged.rb', line 11

def targets?(reference)
  target == reference.target
end

#timeObject



7
8
9
# File 'lib/ext/rugged.rb', line 7

def time
  target.time
end