Class: Seccomp::LibraryVersion
- Inherits:
-
Struct
- Object
- Struct
- Seccomp::LibraryVersion
- Defined in:
- lib/libseccomp.rb
Overview
Semantic version of the linked libseccomp library.
Instance Attribute Summary collapse
-
#major ⇒ Object
Returns the value of attribute major.
-
#micro ⇒ Object
Returns the value of attribute micro.
-
#minor ⇒ Object
Returns the value of attribute minor.
Instance Method Summary collapse
-
#to_s ⇒ String
Dotted version string.
Instance Attribute Details
#major ⇒ Object
Returns the value of attribute major
23 24 25 |
# File 'lib/libseccomp.rb', line 23 def major @major end |
#micro ⇒ Object
Returns the value of attribute micro
23 24 25 |
# File 'lib/libseccomp.rb', line 23 def micro @micro end |
#minor ⇒ Object
Returns the value of attribute minor
23 24 25 |
# File 'lib/libseccomp.rb', line 23 def minor @minor end |
Instance Method Details
#to_s ⇒ String
Returns dotted version string.
26 27 28 |
# File 'lib/libseccomp.rb', line 26 def to_s values.join(".") end |