Class: AArch64::Parser::ThreeArg

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dObject (readonly)

Returns the value of attribute d.



116
117
118
# File 'lib/aarch64/parser.rb', line 116

def d
  @d
end

#mObject (readonly)

Returns the value of attribute m.



116
117
118
# File 'lib/aarch64/parser.rb', line 116

def m
  @m
end

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



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

def to_a; [d, n, m]; end