Class: Latest::RubyVersion
- Inherits:
-
Object
- Object
- Latest::RubyVersion
- Extended by:
- Forwardable
- Defined in:
- lib/latest_ruby/ruby_version.rb
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(version) ⇒ RubyVersion
constructor
A new instance of RubyVersion.
Constructor Details
#initialize(version) ⇒ RubyVersion
Returns a new instance of RubyVersion.
8 9 10 |
# File 'lib/latest_ruby/ruby_version.rb', line 8 def initialize(version) @version = get_version(version) end |
Instance Method Details
#<=>(other) ⇒ Object
12 13 14 |
# File 'lib/latest_ruby/ruby_version.rb', line 12 def <=>(other) @version <=> other.instance_variable_get(:@version) end |