Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#capitalize_allObject



25
26
27
# File 'lib/ext/string.rb', line 25

def capitalize_all
  self.split(' ').map {|w| w.capitalize }.join(' ')
end

#city_info(**kwargs) ⇒ Object



13
14
15
# File 'lib/ext/string.rb', line 13

def city_info(**kwargs)
  Zipcoder.city_info self, **kwargs
end

#state_cities(**kwargs) ⇒ Object



17
18
19
# File 'lib/ext/string.rb', line 17

def state_cities(**kwargs)
  Zipcoder.state_cities self, **kwargs
end

#to_zipObject



21
22
23
# File 'lib/ext/string.rb', line 21

def to_zip
  self
end

#zip_cities(**kwargs) ⇒ Object



9
10
11
# File 'lib/ext/string.rb', line 9

def zip_cities(**kwargs)
  Zipcoder.zip_cities self, **kwargs
end

#zip_info(**kwargs) ⇒ Object



5
6
7
# File 'lib/ext/string.rb', line 5

def zip_info(**kwargs)
  Zipcoder.zip_info self, **kwargs
end