Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/madderlib/extensions.rb
Instance Method Summary collapse
-
#to_byte_s ⇒ Object
Composites the Array – of Fixnums (characters) – into a String.
Instance Method Details
#to_byte_s ⇒ Object
Composites the Array – of Fixnums (characters) – into a String. An exception will be raised if any value in the Array is not a Fixnum
37 38 39 |
# File 'lib/madderlib/extensions.rb', line 37 def to_byte_s self.collect {|c| c.chr }.join(nil) end |