Class: DiffChange
- Inherits:
-
Struct
- Object
- Struct
- DiffChange
- Defined in:
- app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #added? ⇒ Boolean
- #broken? ⇒ Boolean
- #copied? ⇒ Boolean
- #deleted? ⇒ Boolean
- #modified? ⇒ Boolean
- #renamed? ⇒ Boolean
- #type_changed? ⇒ Boolean
- #unmerged? ⇒ Boolean
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
3 4 5 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 3 def file @file end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 3 def type @type end |
Instance Method Details
#added? ⇒ Boolean
4 5 6 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 4 def added? type == "A" end |
#broken? ⇒ Boolean
32 33 34 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 32 def broken? type == "B" end |
#copied? ⇒ Boolean
8 9 10 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 8 def copied? type == "C" end |
#deleted? ⇒ Boolean
12 13 14 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 12 def deleted? type == "D" end |
#modified? ⇒ Boolean
16 17 18 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 16 def modified? type == "M" end |
#renamed? ⇒ Boolean
20 21 22 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 20 def renamed? type == "R" end |
#type_changed? ⇒ Boolean
24 25 26 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 24 def type_changed? type == "T" end |
#unmerged? ⇒ Boolean
28 29 30 |
# File 'app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb', line 28 def unmerged? type == "U" end |