Class: MetaCommit::Contracts::Diff
- Inherits:
-
Object
- Object
- MetaCommit::Contracts::Diff
- Defined in:
- lib/meta_commit_contracts/diff.rb
Overview
Diff contains data from changed element and is responsible for printing structured, user friendly message about change
Constant Summary collapse
- TYPE_ADDITION =
:addition
- TYPE_DELETION =
:deletion
- TYPE_REPLACE =
:replace
- SUPPORTS_ALL_PARSERS_WILDCARD =
:*
Instance Attribute Summary collapse
-
#change_context ⇒ MetaCommit::Contracts::ChangeContext
The current value of change_context.
Instance Method Summary collapse
- #string_representation ⇒ String
- #supports_change(context) ⇒ Boolean
- #supports_parser?(parser) ⇒ Boolean
- #to_s ⇒ String
- #type_addition? ⇒ Boolean
- #type_deletion? ⇒ Boolean
- #type_replace? ⇒ Boolean
Instance Attribute Details
#change_context ⇒ MetaCommit::Contracts::ChangeContext
Returns the current value of change_context.
4 5 6 |
# File 'lib/meta_commit_contracts/diff.rb', line 4 def change_context @change_context end |
Instance Method Details
#string_representation ⇒ String
32 33 34 |
# File 'lib/meta_commit_contracts/diff.rb', line 32 def string_representation end |
#supports_change(context) ⇒ Boolean
22 23 24 |
# File 'lib/meta_commit_contracts/diff.rb', line 22 def supports_change(context) end |
#supports_parser?(parser) ⇒ Boolean
16 17 18 |
# File 'lib/meta_commit_contracts/diff.rb', line 16 def supports_parser?(parser) end |
#to_s ⇒ String
27 28 29 |
# File 'lib/meta_commit_contracts/diff.rb', line 27 def to_s end |
#type_addition? ⇒ Boolean
37 38 39 |
# File 'lib/meta_commit_contracts/diff.rb', line 37 def type_addition? end |
#type_deletion? ⇒ Boolean
42 43 44 |
# File 'lib/meta_commit_contracts/diff.rb', line 42 def type_deletion? end |
#type_replace? ⇒ Boolean
47 48 49 |
# File 'lib/meta_commit_contracts/diff.rb', line 47 def type_replace? end |