sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Date#change
Returns a new Date where one or more of the elements have been changed according to the +options+ parameter. The +options+ parameter is a hash with a combination of these keys: <tt>:year</tt>, <tt>:month</tt>, <tt>:day</tt>. Date.new(2007, 5, 12).change(day: 1) # => Date.new(2007, 5, 1) Date.new(2007, 5, 12).change(year: 2005, month: 1) # => Date.new(2005, 1, 12)
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/core_ext/date/calculations.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Date-change-for-pr
# Commit to gitgit add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/core_ext/date/calculations.rbgit commit -m "better docs for Date#change"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Date-change-for-pr
hub pull-request
# Celebrate!