Class: AArch64::Parser::ThreeArg
- Inherits:
-
Object
- Object
- AArch64::Parser::ThreeArg
- Defined in:
- lib/aarch64/parser.rb
Instance Attribute Summary collapse
-
#d ⇒ Object
readonly
Returns the value of attribute d.
-
#m ⇒ Object
readonly
Returns the value of attribute m.
-
#n ⇒ Object
readonly
Returns the value of attribute n.
Instance Method Summary collapse
- #apply(asm, name) ⇒ Object
-
#initialize(d, n, m) ⇒ ThreeArg
constructor
A new instance of ThreeArg.
- #to_a ⇒ Object
Constructor Details
#initialize(d, n, m) ⇒ ThreeArg
Returns a new instance of ThreeArg.
118 119 120 121 122 |
# File 'lib/aarch64/parser.rb', line 118 def initialize d, n, m @d = d @n = n @m = m end |
Instance Attribute Details
#d ⇒ Object (readonly)
Returns the value of attribute d.
116 117 118 |
# File 'lib/aarch64/parser.rb', line 116 def d @d end |
#m ⇒ Object (readonly)
Returns the value of attribute m.
116 117 118 |
# File 'lib/aarch64/parser.rb', line 116 def m @m end |
#n ⇒ Object (readonly)
Returns the value of attribute n.
116 117 118 |
# File 'lib/aarch64/parser.rb', line 116 def n @n end |
Instance Method Details
#apply(asm, name) ⇒ Object
124 125 126 |
# File 'lib/aarch64/parser.rb', line 124 def apply asm, name asm.public_send(name, d, n, m) end |
#to_a ⇒ Object
128 |
# File 'lib/aarch64/parser.rb', line 128 def to_a; [d, n, m]; end |