Class: Indis::Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/indis-core/symbol.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, section, image, vmaddr) ⇒ Symbol

Returns a new instance of Symbol.



24
25
26
27
28
29
# File 'lib/indis-core/symbol.rb', line 24

def initialize(name, section, image, vmaddr)
  @name = name
  @section = section
  @image = image
  @vmaddr = vmaddr
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



22
23
24
# File 'lib/indis-core/symbol.rb', line 22

def image
  @image
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/indis-core/symbol.rb', line 22

def name
  @name
end

#sectionObject (readonly)

Returns the value of attribute section.



22
23
24
# File 'lib/indis-core/symbol.rb', line 22

def section
  @section
end

#typeObject (readonly)

Returns the value of attribute type.



22
23
24
# File 'lib/indis-core/symbol.rb', line 22

def type
  @type
end

#vmaddrObject (readonly)

Returns the value of attribute vmaddr.



22
23
24
# File 'lib/indis-core/symbol.rb', line 22

def vmaddr
  @vmaddr
end

Instance Method Details

#to_sObject



31
32
33
# File 'lib/indis-core/symbol.rb', line 31

def to_s
  "#<#{self.class} #{@name} at #{@vmaddr.to_s 16}>"
end