lib/ext/string.rb in zipcoder-0.3.0 vs lib/ext/string.rb in zipcoder-0.4.0

- old
+ new

@@ -4,18 +4,26 @@ def zip_info(**kwargs) Zipcoder.zip_info self, **kwargs end + def zip_cities(**kwargs) + Zipcoder.zip_cities self, **kwargs + end + def city_info(**kwargs) Zipcoder.city_info self, **kwargs end - def cities(**kwargs) - Zipcoder.cities self, **kwargs + def state_cities(**kwargs) + Zipcoder.state_cities self, **kwargs end def to_zip self + end + + def capitalize_all + self.split(' ').map {|w| w.capitalize }.join(' ') end end \ No newline at end of file