Class: Reggae::Register
- Inherits:
-
Struct
- Object
- Struct
- Reggae::Register
- Includes:
- Visitable
- Defined in:
- lib/reggae/ast.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#bitfields ⇒ Object
Returns the value of attribute bitfields.
-
#bits ⇒ Object
Returns the value of attribute bits.
-
#init ⇒ Object
Returns the value of attribute init.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sampling ⇒ Object
Returns the value of attribute sampling.
-
#writable ⇒ Object
Returns the value of attribute writable.
Instance Method Summary collapse
Methods included from Visitable
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
58 59 60 |
# File 'lib/reggae/ast.rb', line 58 def address @address end |
#bitfields ⇒ Object
Returns the value of attribute bitfields
58 59 60 |
# File 'lib/reggae/ast.rb', line 58 def bitfields @bitfields end |
#bits ⇒ Object
Returns the value of attribute bits
58 59 60 |
# File 'lib/reggae/ast.rb', line 58 def bits @bits end |
#init ⇒ Object
Returns the value of attribute init
58 59 60 |
# File 'lib/reggae/ast.rb', line 58 def init @init end |
#name ⇒ Object
Returns the value of attribute name
58 59 60 |
# File 'lib/reggae/ast.rb', line 58 def name @name end |
#sampling ⇒ Object
Returns the value of attribute sampling
58 59 60 |
# File 'lib/reggae/ast.rb', line 58 def sampling @sampling end |
#writable ⇒ Object
Returns the value of attribute writable
58 59 60 |
# File 'lib/reggae/ast.rb', line 58 def writable @writable end |
Instance Method Details
#bit(n) ⇒ Object
60 61 62 |
# File 'lib/reggae/ast.rb', line 60 def bit(n) @bits.find{|bit| bit.position==n} end |