From: 0x0dea+redmine@... Date: 2015-06-24T01:00:46+00:00 Subject: [ruby-core:69719] [Ruby trunk - Bug #11300] [Open] [PATCH] Add String#bin for parity with #hex and #oct. Issue #11300 has been reported by D.E. Akers. ---------------------------------------- Bug #11300: [PATCH] Add String#bin for parity with #hex and #oct. https://bugs.ruby-lang.org/issues/11300 * Author: D.E. Akers * Status: Open * Priority: Normal * Assignee: * ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- ## 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) -- https://bugs.ruby-lang.org/