Module: Seccomp::Arg::DSL

Included in:
Filter
Defined in:
lib/seccomp/arg.rb

Overview

Adds #arg to filter and DSL contexts.

Instance Method Summary collapse

Instance Method Details

#arg(index) ⇒ Reference

Returns comparison builder.

Examples:

arg(0).eq(2)

Parameters:

  • index (Integer)

    argument index

Returns:

Raises:

  • (ArgumentError)

    outside 0..5



102
103
104
# File 'lib/seccomp/arg.rb', line 102

def arg(index)
  Reference.new(index)
end