tmlee / time_difference

The missing Ruby method to print out time difference (duration) in year, month, week, day, hour, minute, and second.
https://rubygems.org/gems/time_difference
MIT License
305 stars 92 forks source link

Changes: Dynamically defining methods using define_method #25

Open vrushalip opened 7 years ago

vrushalip commented 7 years ago

1- Dynamically defining methods using define_method. 2- Changed in_component method for rounding up value.