lib/version_gem/api.rb in version_gem-1.1.2 vs lib/version_gem/api.rb in version_gem-1.1.3
- old
+ new
@@ -1,6 +1,7 @@
module VersionGem
+ # Public API of this library
module Api
# The version number as a string
#
# @return [String]
def to_s
@@ -41,11 +42,11 @@
def to_h
@to_h ||= {
major: major,
minor: minor,
patch: patch,
- pre: pre
+ pre: pre,
}
end
# The version number as an array of cast values
#
@@ -58,9 +59,9 @@
# The version number as an array of strings
#
# @return [Array<String>]
def _to_a
- @_to_a = self::VERSION.split('.')
+ @_to_a = self::VERSION.split(".")
end
end
end