Class: AVR::Register
- Extended by:
- T::Sig
- Defined in:
- lib/avr/register.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cpu ⇒ Object
readonly
Returns the value of attribute cpu.
Attributes inherited from Value
Instance Method Summary collapse
-
#initialize(cpu, name) ⇒ Register
constructor
A new instance of Register.
Methods inherited from Value
#format, #inspect, #to_i, #to_s, #value_hex
Constructor Details
#initialize(cpu, name) ⇒ Register
Returns a new instance of Register.
12 13 14 15 16 |
# File 'lib/avr/register.rb', line 12 def initialize(cpu, name) super() @cpu = cpu @name = name end |
Instance Attribute Details
#cpu ⇒ Object (readonly)
Returns the value of attribute cpu.
9 10 11 |
# File 'lib/avr/register.rb', line 9 def cpu @cpu end |