Methods
M
R
S
Instance Public methods
major()

Returns the major number in this version.

# File lib/inochi/init.rb, line 156
    def major
      to_s[/^\d+/]
    end
requirement()

Returns a Gem::Requirement expression.

# File lib/inochi/init.rb, line 166
    def requirement
      "~> #{major}"
    end
series()

Returns a string describing any version with the current major number.

# File lib/inochi/init.rb, line 161
    def series
      "#{major}.x.x"
    end