Project

General

Profile

Actions

Feature #11300

closed

[PATCH] Add String#bin for parity with #hex and #oct.

Added by 0x0dea (D.E. Akers) almost 9 years ago. Updated over 4 years ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:69719]

Description

Proposal

It is proposed that String#bin be added to return the receiver's value when interpreted as a string of binary digits.

Rationale

This method's absence is surprising in the presence of #hex and #oct.


Files

string_bin.patch (2.17 KB) string_bin.patch 0x0dea (D.E. Akers), 06/24/2015 01:00 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0