Skip to content

Instantly share code, notes, and snippets.

@Watson1978
Created March 4, 2011 01:38
Show Gist options
  • Save Watson1978/854002 to your computer and use it in GitHub Desktop.
Save Watson1978/854002 to your computer and use it in GitHub Desktop.
require 'date'
p Date.respond_to?(:now) # => false
p Date.now
__END__
$ macruby test_date.rb
true
/Users/qoo/tmp/test_date.rb:4:in `<main>': private method `now' called for Date:Class (NoMethodError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment