Project

General

Profile

Actions

Feature #11300

open

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

Added by 0x0dea (D.E. Akers) over 6 years ago. Updated over 2 years ago.

Status:
Feedback
Priority:
Normal
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