Last active
January 1, 2018 22:04
-
-
Save ryanckulp/96cc6b5d165917605085886701b9664b to your computer and use it in GitHub Desktop.
useful methods without parameters, in Ruby
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 date_night? | |
Date.today.wday == 5 # is today the weekday 5 out of 7? | |
end | |
def bitcoin_price | |
Bitcoin.get_current_price | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment