daru
https://github.com/sciruby/daru
Ruby
Data Analysis in RUby
Daru::DateOffset#initialize
A Daru::DateOffset object is created by a passing certain options to the constructor, which determine the kind of offset the object will support. You can pass one of the following options followed by their number to the DateOffset constructor: * :secs - Create a seconds offset * :mins - Create a minutes offset * :hours - Create an hours offset * :days - Create a days offset * :weeks - Create a weeks offset * :months - Create a months offset * :years - Create a years offset Additionaly, passing the `:n` option will apply the offset that many times.
Edit
git clone [email protected]:sciruby/daru.git
cd daru
open lib/daru/date_time/offsets.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Daru--DateOffset-initialize-for-pr
# Commit to gitgit add lib/daru/date_time/offsets.rbgit commit -m "better docs for Daru::DateOffset#initialize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Daru--DateOffset-initialize-for-pr
hub pull-request
# Celebrate!