Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/mootool/config/initializers/string.rb
Instance Method Summary collapse
Instance Method Details
#from_hex ⇒ Object
8 9 10 |
# File 'lib/mootool/config/initializers/string.rb', line 8 def from_hex pack('H*') end |
#to_hex(upper: true) ⇒ Object
4 5 6 |
# File 'lib/mootool/config/initializers/string.rb', line 4 def to_hex(upper: true) upper ? unpack1('H*').upcase : unpack1('H*') end |