Project

itudes

0.0
No commit activity in last 3 years
No release in over 3 years
Utility library to simplify dealing with multitudes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Itudes

This is a small utitility class to simplify multitude handling in ruby.

There are few handy things:

  • String class is monkeypatched with to_itude method, which does converts to Float any of the following strings:
    • 53.1234565
    • 53°11′18″N
    • 53 11 18N
  • The distance between two points on the Earth is calculated with one single method call.

Installation

Add this line to your application's Gemfile:

gem 'itudes'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itudes

Usage

  itudes = Geo::Itudes.new 53.15, -18.44
  puts itudes - "53°11′18″N,37°5′18″E"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request