Class: Indis::Symbol
- Inherits:
-
Object
- Object
- Indis::Symbol
- Defined in:
- lib/indis-core/symbol.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#vmaddr ⇒ Object
readonly
Returns the value of attribute vmaddr.
Instance Method Summary collapse
-
#initialize(name, section, image, vmaddr) ⇒ Symbol
constructor
A new instance of Symbol.
- #to_s ⇒ Object
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
#image ⇒ Object (readonly)
Returns the value of attribute image.
22 23 24 |
# File 'lib/indis-core/symbol.rb', line 22 def image @image end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/indis-core/symbol.rb', line 22 def name @name end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
22 23 24 |
# File 'lib/indis-core/symbol.rb', line 22 def section @section end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
22 23 24 |
# File 'lib/indis-core/symbol.rb', line 22 def type @type end |
#vmaddr ⇒ Object (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_s ⇒ Object
31 32 33 |
# File 'lib/indis-core/symbol.rb', line 31 def to_s "#<#{self.class} #{@name} at #{@vmaddr.to_s 16}>" end |