Class: AArch64::Parser::TwoArg

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mObject (readonly)

Returns the value of attribute m.



101
102
103
# File 'lib/aarch64/parser.rb', line 101

def m
  @m
end

#nObject (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_aObject



112
# File 'lib/aarch64/parser.rb', line 112

def to_a; [n, m]; end