Module: Shoutcast::Xml::ClassMethods

Defined in:
lib/shoutcast_api.rb

Instance Method Summary collapse

Instance Method Details

#trimObject

Strip whitespaces.



85
86
87
# File 'lib/shoutcast_api.rb', line 85

def trim
  proc { |v| v.to_s.strip.squeeze(" ") }
end