Module: GObjectIntrospection::Version

Defined in:
lib/gobject-introspection/version.rb

Constant Summary collapse

STRING =
BUILD_VERSION.join(".")

Class Method Summary collapse

Class Method Details

.or_later?(major, minor, micro = nil) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
26
27
28
29
30
31
# File 'lib/gobject-introspection/version.rb', line 23

def or_later?(major, minor, micro=nil)
  micro ||= 0
  version = [
    MAJOR,
    MINOR,
    MICRO,
  ]
  (version <=> [major, minor, micro]) >= 0
end