Created
October 12, 2011 19:49
-
-
Save Blue-Dog-Archolite/1282319 to your computer and use it in GitHub Desktop.
Not smart enough to understand
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rapid_reply(opts = {}) | |
require_per_hour = opts[:require_per_hour] ||= true | |
force_reconstruction = opts[:force_reconstruction] ||= false | |
opts[:commit] ||= true #always sets the value of opts[:commit] to true regardless if passed in. | |
opts[:commit] = true if opts[:commit].nil? #this line works as expected | |
end | |
#when calling | |
rapid_reply(:commit => false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment