Project

General

Profile

Actions

Feature #5006

closed

Allow ~> as a method

Feature #5006: Allow ~> as a method

Added by trans (Thomas Sawyer) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
-
[ruby-core:37919]

Description

It occurs to me that since RubyGems uses > as a recognized version constraint operator (along with >, <, >= and <=) it would be nice if Ruby supported it as a valid method. Ultimately RubyGems could use the new method in it's code. But more generally it could be useful too, as it has a couple of nice features, namely the '' part can be thought of as meaning "approximate", and as a whole it looks like a pointing arrow.

Actions

Also available in: PDF Atom