Class: SeccompTools::Asm::Scalar::Data

Inherits:
Base
  • Object
show all
Defined in:
lib/seccomp-tools/asm/scalar.rb

Overview

data[]

Instance Attribute Summary

Attributes inherited from Base

#val

Instance Method Summary collapse

Methods inherited from Base

#a?, #const?, #len?, #mem?, #x?

Constructor Details

#initialize(index) ⇒ Data

Instantiates a SeccompTools::Asm::Scalar::Data object.

Parameters:

  • index (Integer)


93
94
95
96
# File 'lib/seccomp-tools/asm/scalar.rb', line 93

def initialize(index)
  @val = index
  super()
end

Instance Method Details

#==(other) ⇒ Object

Parameters:



99
100
101
# File 'lib/seccomp-tools/asm/scalar.rb', line 99

def ==(other)
  other.is_a?(Data) && val == other.val
end

#data?Boolean

Returns:

  • (Boolean)


103
104
105
# File 'lib/seccomp-tools/asm/scalar.rb', line 103

def data?
  true
end