Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/array.rb

Instance Method Summary collapse

Instance Method Details

#to_chrObject



6
7
8
# File 'lib/core_ext/array.rb', line 6

def to_chr
  map { |el| el.chr }
end

#to_chr_stringObject



10
11
12
# File 'lib/core_ext/array.rb', line 10

def to_chr_string
  to_chr.join
end

#to_hexObject



2
3
4
# File 'lib/core_ext/array.rb', line 2

def to_hex
  map { |el| el.to_hex_str }
end