lib/sycamore/version.rb in metaractor-sycamore-0.4.2 vs lib/sycamore/version.rb in metaractor-sycamore-0.4.3
- old
+ new
@@ -1,28 +1,34 @@
module Sycamore
# version representation
module VERSION
# the file containing the project version number
- FILE = File.expand_path('../../../VERSION', __FILE__)
- MAJOR, MINOR, TINY, EXTRA = File.read(FILE).chomp.split('.')
+ FILE = File.expand_path("../../../VERSION", __FILE__)
+ MAJOR, MINOR, TINY, EXTRA = File.read(FILE).chomp.split(".")
# the normalized version string
- STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.').freeze
+ STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join(".").freeze
##
# @return [String]
- def self.to_s() STRING end
+ def self.to_s
+ STRING
+ end
##
# @return [String]
- def self.to_str() STRING end
+ def self.to_str
+ STRING
+ end
##
# @return [Array(Integer, Integer, Integer)]
- def self.to_a() [MAJOR, MINOR, TINY] end
+ def self.to_a
+ [MAJOR, MINOR, TINY]
+ end
##
# @return [Boolean]
def self.==(other)
- other == self.to_s
+ other == to_s
end
end
end