Class: MetaCommit::Contracts::ChangeContext

Inherits:
Object
  • Object
show all
Defined in:
lib/meta_commit_contracts/change_context.rb

Overview

DTO that keeps data of context of change

Instance Attribute Summary collapse

Instance Attribute Details

#commit_id_newString

Returns the current value of commit_id_new.

Returns:

  • (String)

    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_oldString

Returns the current value of commit_id_old.

Returns:

  • (String)

    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

#lineNumeric

Returns the current value of line.

Returns:

  • (Numeric)

    the current value of line



11
12
13
# File 'lib/meta_commit_contracts/change_context.rb', line 11

def line
  @line
end

#new_contextual_astMetaCommit::Contracts::ContextualAst

Returns the current value of new_contextual_ast.

Returns:



11
12
13
# File 'lib/meta_commit_contracts/change_context.rb', line 11

def new_contextual_ast
  @new_contextual_ast
end

#new_file_pathString

Returns the current value of new_file_path.

Returns:

  • (String)

    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_linenoObject

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_astMetaCommit::Contracts::ContextualAst

Returns the current value of old_contextual_ast.

Returns:



11
12
13
# File 'lib/meta_commit_contracts/change_context.rb', line 11

def old_contextual_ast
  @old_contextual_ast
end

#old_file_pathString

Returns the current value of old_file_path.

Returns:

  • (String)

    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_linenoObject

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

#typeSymbol

Returns the current value of type.

Returns:

  • (Symbol)

    the current value of type



11
12
13
# File 'lib/meta_commit_contracts/change_context.rb', line 11

def type
  @type
end