Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/fsr/listener/outbound.rb

Instance Method Summary collapse

Instance Method Details

#strip_value_newlinesObject



188
189
190
# File 'lib/fsr/listener/outbound.rb', line 188

def strip_value_newlines
  Hash[*(self.map { |k,v| v.respond_to?(:to_s) ? [k, v.to_s.strip] : [k, v] }.flatten)]
end