Class: Seccomp::LibraryVersion

Inherits:
Struct
  • Object
show all
Defined in:
lib/libseccomp.rb

Overview

Semantic version of the linked libseccomp library.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#majorObject

Returns the value of attribute major

Returns:

  • (Object)

    the current value of major



23
24
25
# File 'lib/libseccomp.rb', line 23

def major
  @major
end

#microObject

Returns the value of attribute micro

Returns:

  • (Object)

    the current value of micro



23
24
25
# File 'lib/libseccomp.rb', line 23

def micro
  @micro
end

#minorObject

Returns the value of attribute minor

Returns:

  • (Object)

    the current value of minor



23
24
25
# File 'lib/libseccomp.rb', line 23

def minor
  @minor
end

Instance Method Details

#to_sString

Returns dotted version string.

Examples:

Seccomp.library_version.to_s #=> "2.6.1"

Returns:

  • (String)

    dotted version string



26
27
28
# File 'lib/libseccomp.rb', line 26

def to_s
  values.join(".")
end