Class: Ast::Merge::StructuralPathMatch

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



414
415
416
# File 'lib/ast/merge.rb', line 414

def confidence
  @confidence
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



414
415
416
# File 'lib/ast/merge.rb', line 414

def from_node_id
  @from_node_id
end

#from_pathObject

Returns the value of attribute from_path

Returns:

  • (Object)

    the current value of from_path



414
415
416
# File 'lib/ast/merge.rb', line 414

def from_path
  @from_path
end

#to_node_idObject

Returns the value of attribute to_node_id

Returns:

  • (Object)

    the current value of to_node_id



414
415
416
# File 'lib/ast/merge.rb', line 414

def to_node_id
  @to_node_id
end

#to_pathObject

Returns the value of attribute to_path

Returns:

  • (Object)

    the current value of to_path



414
415
416
# File 'lib/ast/merge.rb', line 414

def to_path
  @to_path
end

Instance Method Details

#to_hObject



416
417
418
419
420
421
422
423
424
# File 'lib/ast/merge.rb', line 416

def to_h
  {
    from_path: from_path,
    to_path: to_path,
    from_node_id: from_node_id,
    to_node_id: to_node_id,
    confidence: confidence
  }
end