MAJOR_VERSION
MINOR_VERSION
MICRO_VERSION
[MAJOR, MINOR, MICRO].join(".")
Returns:
25 26 27 28 29 30 31 32 33
# File 'lib/wnck3/version.rb', line 25 def or_later?(major, minor, micro=nil) micro ||= 0 version = [ MAJOR, MINOR, MICRO, ] (version <=> [major, minor, micro]) >= 0 end