Module: Poppler::Version

Defined in:
lib/poppler/version.rb

Constant Summary collapse

MAJOR =
MAJOR_VERSION
MINOR =
MINOR_VERSION
MICRO =
MICRO_VERSION
STRING =
"#{MAJOR_VERSION}.#{MINOR_VERSION}.#{MICRO_VERSION}"

Class Method Summary collapse

Class Method Details

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

Returns:

  • (Boolean)


24
25
26
27
28
29
30
31
32
# File 'lib/poppler/version.rb', line 24

def or_later?(major, minor, micro=nil)
  micro ||= 0
  version = [
    MAJOR_VERSION,
    MINOR_VERSION,
    MICRO_VERSION,
  ]
  (version <=> [major, minor, micro]) >= 0
end