class MetaCommit::Contracts::Diff
Diff
contains data from changed element and is responsible for printing structured, user friendly message about change @attr [MetaCommit::Contracts::ChangeContext] change_context
Constants
- SUPPORTS_ALL_PARSERS_WILDCARD
- TYPE_ADDITION
- TYPE_DELETION
- TYPE_REPLACE
Attributes
change_context[RW]
Public Instance Methods
string_representation()
click to toggle source
@return [String]
# File lib/meta_commit_contracts/diff.rb, line 32 def string_representation end
supports_change(context)
click to toggle source
@param [MetaCommit::Contracts::ChangeContext] context @return [Boolean]
# File lib/meta_commit_contracts/diff.rb, line 22 def supports_change(context) end
supports_parser?(parser)
click to toggle source
@param [Class] parser @return [Boolean]
# File lib/meta_commit_contracts/diff.rb, line 16 def supports_parser?(parser) end
to_s()
click to toggle source
@return [String]
# File lib/meta_commit_contracts/diff.rb, line 27 def to_s end
type_addition?()
click to toggle source
@return [Boolean]
# File lib/meta_commit_contracts/diff.rb, line 37 def type_addition? end
type_deletion?()
click to toggle source
@return [Boolean]
# File lib/meta_commit_contracts/diff.rb, line 42 def type_deletion? end
type_replace?()
click to toggle source
@return [Boolean]
# File lib/meta_commit_contracts/diff.rb, line 47 def type_replace? end