Sha256: ea504de906183a01c9bdea3696c1dcf77b22e6032ac1b01aea34975d0a4415bc

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

require_relative "../zipcoder"

class String

  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 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zipcoder-0.4.0 lib/ext/string.rb