class Staticpress::Version

Constants

SIGNATURE

Public Class Methods

<=>(other) click to toggle source
# File lib/staticpress/version.rb, line 7
def self.<=>(other)
  other = other.split('.').map(&:to_i) if other.respond_to? :split
  SIGNATURE <=> Array(other)
end
to_s() click to toggle source
# File lib/staticpress/version.rb, line 12
def self.to_s
  SIGNATURE.join('.')
end