Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/rublicatorg.rb
Instance Method Summary collapse
Instance Method Details
#hex_to_str ⇒ Object
27 28 29 30 31 |
# File 'lib/rublicatorg.rb', line 27 def hex_to_str str = "" self.collect{|b| str << "%c" % b} str end |
#to_hex_str ⇒ Object
33 34 35 |
# File 'lib/rublicatorg.rb', line 33 def to_hex_str self.collect{|e| "0x%02x" % e}.join(" ") end |