Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#to_hex_ary ⇒ Object
3 4 5 6 7 |
# File 'lib/core_ext/string.rb', line 3 def to_hex_ary res = [] chars.each_slice(2) { |byte| res << byte.join().to_i(16) } res end |