Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/iso/iban/backports.rb

Overview

Backports from ruby 2.0 used in ISO::IBAN

Instance Method Summary collapse

Instance Method Details

#bObject

Returns a copied string whose encoding is ASCII-8BIT.

Examples:

str.b   -> str

13
14
15
# File 'lib/iso/iban/backports.rb', line 13

def b
  dup.force_encoding(Encoding::BINARY)
end