Class: Rugged::Diff::Delta
- Inherits:
-
Object
- Object
- Rugged::Diff::Delta
- Defined in:
- lib/rugged/diff/delta.rb,
ext/rugged/rugged_diff_delta.c
Instance Attribute Summary collapse
-
#binary ⇒ Object
(also: #binary?)
readonly
Returns the value of attribute binary.
-
#new_file ⇒ Object
readonly
Returns the value of attribute new_file.
-
#old_file ⇒ Object
readonly
Returns the value of attribute old_file.
-
#owner ⇒ Object
(also: #diff)
readonly
Returns the value of attribute owner.
-
#similarity ⇒ Object
readonly
Returns the value of attribute similarity.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#status_char ⇒ Object
readonly
Returns the value of attribute status_char.
Instance Method Summary collapse
- #added? ⇒ Boolean
- #copied? ⇒ Boolean
- #deleted? ⇒ Boolean
- #ignored? ⇒ Boolean
- #inspect ⇒ Object
- #modified? ⇒ Boolean
- #renamed? ⇒ Boolean
- #typechange? ⇒ Boolean
- #untracked? ⇒ Boolean
Instance Attribute Details
#binary ⇒ Object (readonly) Also known as: binary?
Returns the value of attribute binary.
17 18 19 |
# File 'lib/rugged/diff/delta.rb', line 17 def binary @binary end |
#new_file ⇒ Object (readonly)
Returns the value of attribute new_file.
13 14 15 |
# File 'lib/rugged/diff/delta.rb', line 13 def new_file @new_file end |
#old_file ⇒ Object (readonly)
Returns the value of attribute old_file.
12 13 14 |
# File 'lib/rugged/diff/delta.rb', line 12 def old_file @old_file end |
#owner ⇒ Object (readonly) Also known as: diff
Returns the value of attribute owner.
9 10 11 |
# File 'lib/rugged/diff/delta.rb', line 9 def owner @owner end |
#similarity ⇒ Object (readonly)
Returns the value of attribute similarity.
14 15 16 |
# File 'lib/rugged/diff/delta.rb', line 14 def similarity @similarity end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
15 16 17 |
# File 'lib/rugged/diff/delta.rb', line 15 def status @status end |
#status_char ⇒ Object (readonly)
Returns the value of attribute status_char.
16 17 18 |
# File 'lib/rugged/diff/delta.rb', line 16 def status_char @status_char end |
Instance Method Details
#added? ⇒ Boolean
21 22 23 |
# File 'lib/rugged/diff/delta.rb', line 21 def added? status == :added end |
#copied? ⇒ Boolean
37 38 39 |
# File 'lib/rugged/diff/delta.rb', line 37 def copied? status == :copied end |
#deleted? ⇒ Boolean
25 26 27 |
# File 'lib/rugged/diff/delta.rb', line 25 def deleted? status == :deleted end |
#ignored? ⇒ Boolean
41 42 43 |
# File 'lib/rugged/diff/delta.rb', line 41 def ignored? status == :ignored end |
#inspect ⇒ Object
53 54 55 |
# File 'lib/rugged/diff/delta.rb', line 53 def inspect "#<#{self.class.name}:#{object_id} {old_file: #{old_file.inspect}, new_file: #{new_file.inspect}, similarity: #{similarity.inspect}, status: #{status.inspect}>" end |
#modified? ⇒ Boolean
29 30 31 |
# File 'lib/rugged/diff/delta.rb', line 29 def modified? status == :modified end |
#renamed? ⇒ Boolean
33 34 35 |
# File 'lib/rugged/diff/delta.rb', line 33 def renamed? status == :renamed end |
#typechange? ⇒ Boolean
49 50 51 |
# File 'lib/rugged/diff/delta.rb', line 49 def typechange? status == :typechange end |
#untracked? ⇒ Boolean
45 46 47 |
# File 'lib/rugged/diff/delta.rb', line 45 def untracked? status == :untracked end |