Actions
Feature #16137
closedAdd === to UnboundMethod
Feature #16137:
Add === to UnboundMethod
Status:
Closed
Assignee:
-
Target version:
-
Description
Abstract¶
UnboundMethod class should have === so that it can be used in case statement.
Background¶
Method class has === method so that we can do something like:
However, we cannot do something like this:
Proposal¶
Add === method to UnboundMethod class.
Implementation¶
Minimal implementation in Ruby could be:
Summary¶
=== for UnboundMethod can improve readability in case statement.
Actions