Class: MetaCommit::Contracts::ChangeContext
- Inherits:
-
Object
- Object
- MetaCommit::Contracts::ChangeContext
- Defined in:
- lib/meta_commit_contracts/change_context.rb
Overview
DTO that keeps data of context of change
Instance Attribute Summary collapse
-
#commit_id_new ⇒ String
The current value of commit_id_new.
-
#commit_id_old ⇒ String
The current value of commit_id_old.
-
#line ⇒ Numeric
The current value of line.
-
#new_contextual_ast ⇒ MetaCommit::Contracts::ContextualAst
The current value of new_contextual_ast.
-
#new_file_path ⇒ String
The current value of new_file_path.
-
#new_lineno ⇒ Object
Returns the value of attribute new_lineno.
-
#old_contextual_ast ⇒ MetaCommit::Contracts::ContextualAst
The current value of old_contextual_ast.
-
#old_file_path ⇒ String
The current value of old_file_path.
-
#old_lineno ⇒ Object
Returns the value of attribute old_lineno.
-
#type ⇒ Symbol
The current value of type.
Instance Attribute Details
#commit_id_new ⇒ String
Returns the current value of commit_id_new.
11 12 13 |
# File 'lib/meta_commit_contracts/change_context.rb', line 11 def commit_id_new @commit_id_new end |
#commit_id_old ⇒ String
Returns the current value of commit_id_old.
11 12 13 |
# File 'lib/meta_commit_contracts/change_context.rb', line 11 def commit_id_old @commit_id_old end |
#line ⇒ Numeric
Returns the current value of line.
11 12 13 |
# File 'lib/meta_commit_contracts/change_context.rb', line 11 def line @line end |
#new_contextual_ast ⇒ MetaCommit::Contracts::ContextualAst
Returns the current value of new_contextual_ast.
11 12 13 |
# File 'lib/meta_commit_contracts/change_context.rb', line 11 def new_contextual_ast @new_contextual_ast end |
#new_file_path ⇒ String
Returns the current value of new_file_path.
11 12 13 |
# File 'lib/meta_commit_contracts/change_context.rb', line 11 def new_file_path @new_file_path end |
#new_lineno ⇒ Object
Returns the value of attribute new_lineno.
12 13 14 |
# File 'lib/meta_commit_contracts/change_context.rb', line 12 def new_lineno @new_lineno end |
#old_contextual_ast ⇒ MetaCommit::Contracts::ContextualAst
Returns the current value of old_contextual_ast.
11 12 13 |
# File 'lib/meta_commit_contracts/change_context.rb', line 11 def old_contextual_ast @old_contextual_ast end |
#old_file_path ⇒ String
Returns the current value of old_file_path.
11 12 13 |
# File 'lib/meta_commit_contracts/change_context.rb', line 11 def old_file_path @old_file_path end |
#old_lineno ⇒ Object
Returns the value of attribute old_lineno.
12 13 14 |
# File 'lib/meta_commit_contracts/change_context.rb', line 12 def old_lineno @old_lineno end |
#type ⇒ Symbol
Returns the current value of type.
11 12 13 |
# File 'lib/meta_commit_contracts/change_context.rb', line 11 def type @type end |