Class: Ast::Merge::MergeIRNodeClass

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_idObject

Returns the value of attribute class_id

Returns:

  • (Object)

    the current value of class_id



126
127
128
# File 'lib/ast/merge.rb', line 126

def class_id
  @class_id
end

#node_idsObject

Returns the value of attribute node_ids

Returns:

  • (Object)

    the current value of node_ids



126
127
128
# File 'lib/ast/merge.rb', line 126

def node_ids
  @node_ids
end

#rolesObject

Returns the value of attribute roles

Returns:

  • (Object)

    the current value of roles



126
127
128
# File 'lib/ast/merge.rb', line 126

def roles
  @roles
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



126
127
128
# File 'lib/ast/merge.rb', line 126

def signature
  @signature
end

Instance Method Details

#to_hObject



127
128
129
130
131
132
133
134
# File 'lib/ast/merge.rb', line 127

def to_h
  {
    class_id: class_id,
    signature: signature,
    node_ids: node_ids || {},
    roles: roles || []
  }
end