Class: SeccompTools::Asm::Scalar::Mem
- Defined in:
- lib/seccomp-tools/asm/scalar.rb
Overview
mem[]
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(index) ⇒ Mem
constructor
Instantiates a Mem object.
- #mem? ⇒ Boolean
Methods inherited from Base
#a?, #const?, #data?, #len?, #x?
Constructor Details
#initialize(index) ⇒ Mem
Instantiates a SeccompTools::Asm::Scalar::Mem object.
113 114 115 116 |
# File 'lib/seccomp-tools/asm/scalar.rb', line 113 def initialize(index) @val = index super() end |
Instance Method Details
#==(other) ⇒ Object
119 120 121 |
# File 'lib/seccomp-tools/asm/scalar.rb', line 119 def ==(other) other.is_a?(Mem) && val == other.val end |
#mem? ⇒ Boolean
123 124 125 |
# File 'lib/seccomp-tools/asm/scalar.rb', line 123 def mem? true end |