Method: I2P::Hosts#to_s
- Defined in:
- lib/i2p/hosts.rb
#to_s ⇒ String
Returns all hostname mappings as a string.
173 174 175 |
# File 'lib/i2p/hosts.rb', line 173 def to_s each.inject([]) { |result, (k, v)| result.push([k, v.to_base64].join('=')) }.push('').join($/) end |