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



148
149
150
# File 'lib/ast/merge.rb', line 148

def class_id
  @class_id
end

#node_idsObject

Returns the value of attribute node_ids

Returns:

  • (Object)

    the current value of node_ids



148
149
150
# File 'lib/ast/merge.rb', line 148

def node_ids
  @node_ids
end

#rolesObject

Returns the value of attribute roles

Returns:

  • (Object)

    the current value of roles



148
149
150
# File 'lib/ast/merge.rb', line 148

def roles
  @roles
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



148
149
150
# File 'lib/ast/merge.rb', line 148

def signature
  @signature
end

Instance Method Details

#to_hObject



149
150
151
152
153
154
155
156
# File 'lib/ast/merge.rb', line 149

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