class RPicSim::Label
A very simple class that represents a label in firmware. @api public
Attributes
address[R]
The address/value of the label from the firmware. @return (Integer)
name[R]
The name of the label from the firmware. @return (Symbol)
Public Class Methods
new(name, address)
click to toggle source
Makes a new label with the specified name and address. @api private
# File lib/rpicsim/label.rb, line 16 def initialize(name, address) @name = name @address = address end
Public Instance Methods
to_i()
click to toggle source
Returns the address of the label.
@return [Integer]
# File lib/rpicsim/label.rb, line 24 def to_i address end
to_s()
click to toggle source
Returns a nice string representation of the label.
@return [String]
# File lib/rpicsim/label.rb, line 31 def to_s '<Label %s address=0x%x>' % [name, address] end