class Latest::RubyVersion
Public Class Methods
new(version)
click to toggle source
# File lib/latest_ruby/ruby_version.rb, line 8 def initialize(version) @version = get_version(version) end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/latest_ruby/ruby_version.rb, line 12 def <=>(other) @version <=> other.instance_variable_get(:@version) end
Private Instance Methods
get_version(ver)
click to toggle source
# File lib/latest_ruby/ruby_version.rb, line 20 def get_version(ver) Gem::Version.new(ver) end