Skip to content

Instantly share code, notes, and snippets.

@pointcom
Created January 2, 2018 12:34
Show Gist options
  • Save pointcom/ad80a78f3c89cb4f092f1ccda811b3e0 to your computer and use it in GitHub Desktop.
Save pointcom/ad80a78f3c89cb4f092f1ccda811b3e0 to your computer and use it in GitHub Desktop.
Ruby 2.5
# Before
irb(main):001:0> class Auth; end
=> nil
irb(main):002:0> class Twitter; end
=> nil
irb(main):003:0> Twitter::Auth
(irb):4: warning: toplevel constant Auth referenced by Twitter::Auth
# After
irb(main):001:0> class Auth; end
=> nil
irb(main):002:0> class Twitter; end
=> nil
irb(main):003:0> Twitter::Auth
Traceback (most recent call last):
2: from /usr/local/bin/irb:3:in `<main>'
1: from (irb):3
NameError (uninitialized constant Twitter::Auth
Did you mean? Auth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment