Class: AArch64::Parser::TwoArg
- Inherits:
-
Object
- Object
- AArch64::Parser::TwoArg
- Defined in:
- lib/aarch64/parser.rb
Instance Attribute Summary collapse
-
#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(n, m) ⇒ TwoArg
constructor
A new instance of TwoArg.
- #to_a ⇒ Object
Constructor Details
#initialize(n, m) ⇒ TwoArg
Returns a new instance of TwoArg.
103 104 105 106 |
# File 'lib/aarch64/parser.rb', line 103 def initialize n, m @n = n @m = m end |
Instance Attribute Details
#m ⇒ Object (readonly)
Returns the value of attribute m.
101 102 103 |
# File 'lib/aarch64/parser.rb', line 101 def m @m end |
#n ⇒ Object (readonly)
Returns the value of attribute n.
101 102 103 |
# File 'lib/aarch64/parser.rb', line 101 def n @n end |
Instance Method Details
#apply(asm, name) ⇒ Object
108 109 110 |
# File 'lib/aarch64/parser.rb', line 108 def apply asm, name asm.public_send(name, n, m) end |
#to_a ⇒ Object
112 |
# File 'lib/aarch64/parser.rb', line 112 def to_a; [n, m]; end |