# File dns/lib/symbiosis/config_files/tinydns.rb, line 87 def tinydns_encode(s) # # All bytes between 32 and 126, except hash (comment) and colon (field delimiter) # ok_bytes = ((32..126).to_a - [35, 58]) s.to_s.bytes.collect do |b| (ok_bytes.include?(b) ? b.chr : ("\\%03o" % b)) end.join end