Class: NilClass
- Inherits:
-
Object
- Object
- NilClass
- Defined in:
- lib/hexutils.rb
Instance Method Summary collapse
- #hex? ⇒ Boolean (also: #is_hex?)
-
#to_hex ⇒ Object
(also: #hex)
open question - add hex/to_hex to NilClass too (along like to_s/to_i/etc.) why? why not?.
Instance Method Details
#hex? ⇒ Boolean Also known as: is_hex?
48 |
# File 'lib/hexutils.rb', line 48 def hex?() false; end |
#to_hex ⇒ Object Also known as: hex
open question - add hex/to_hex to NilClass too (along like to_s/to_i/etc.)
why? why not?
54 55 56 |
# File 'lib/hexutils.rb', line 54 def to_hex '' ## note: assume utf_8 encoding for new string end |