Skip to content

Comparable#clamp is not supported #1517

@deepj

Description

@deepj

To reproduce:

10.clamp(0, 5)
'c'.clamp('a', 'b')

Error:

NoMethodError: undefined method `clamp' for 10:Integer
	from (irb):10
	from ~/.rubies/truffleruby-1.0.0-rc10/bin/irb:29:in `<main>'

NoMethodError: undefined method `clamp' for "c":String
	from (irb):11
	from ~/.rubies/truffleruby-1.0.0-rc10/bin/irb:29:in `<main>'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions