Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
useful methods without parameters, in Ruby
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