Class: AArch64::Parser::TwoWithExtend
- Inherits:
-
Object
- Object
- AArch64::Parser::TwoWithExtend
- Defined in:
- lib/aarch64/parser.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#extend ⇒ Object
readonly
Returns the value of attribute extend.
-
#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, extend:, amount:) ⇒ TwoWithExtend
constructor
A new instance of TwoWithExtend.
Constructor Details
#initialize(n, m, extend:, amount:) ⇒ TwoWithExtend
Returns a new instance of TwoWithExtend.
44 45 46 47 48 49 |
# File 'lib/aarch64/parser.rb', line 44 def initialize n, m, extend:, amount: @n = n @m = m @extend = extend @amount = amount end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
42 43 44 |
# File 'lib/aarch64/parser.rb', line 42 def amount @amount end |
#extend ⇒ Object (readonly)
Returns the value of attribute extend.
42 43 44 |
# File 'lib/aarch64/parser.rb', line 42 def extend @extend end |
#m ⇒ Object (readonly)
Returns the value of attribute m.
42 43 44 |
# File 'lib/aarch64/parser.rb', line 42 def m @m end |
#n ⇒ Object (readonly)
Returns the value of attribute n.
42 43 44 |
# File 'lib/aarch64/parser.rb', line 42 def n @n end |
Instance Method Details
#apply(asm, name) ⇒ Object
51 52 53 |
# File 'lib/aarch64/parser.rb', line 51 def apply asm, name asm.public_send(name, n, m, extend: extend, amount: amount) end |