Class: NilClass

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

Instance Method Summary collapse

Instance Method Details

#hex?Boolean Also known as: is_hex?



48
# File 'lib/hexutils.rb', line 48

def hex?() false; end

#to_hexObject 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