Class: MilkTea::DebugMap::Entry

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/tooling/debug_map.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



11
12
13
# File 'lib/milk_tea/tooling/debug_map.rb', line 11

def line
  @line
end

#linkage_nameObject (readonly)

Returns the value of attribute linkage_name

Returns:

  • (Object)

    the current value of linkage_name



11
12
13
# File 'lib/milk_tea/tooling/debug_map.rb', line 11

def linkage_name
  @linkage_name
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



11
12
13
# File 'lib/milk_tea/tooling/debug_map.rb', line 11

def name
  @name
end

Instance Method Details

#to_hObject



12
13
14
15
16
17
18
19
# File 'lib/milk_tea/tooling/debug_map.rb', line 12

def to_h
  payload = {
    "name" => name,
    "cName" => linkage_name,
  }
  payload["line"] = line if line
  payload
end