Returns the major number in this version.
Source: show | on GitHub
# File lib/inochi/init.rb, line 156 def major to_s[/^\d+/] end
Returns a Gem::Requirement expression.
# File lib/inochi/init.rb, line 166 def requirement "~> #{major}" end
Returns a string describing any version with the current major number.
# File lib/inochi/init.rb, line 161 def series "#{major}.x.x" end