daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > ?#'a'
  2.  => "#a"
  3.  
  4. > ?#
  5.  => "#"
  6.  
  7. > ??
  8.  => "?"
  9.  
  10. > ?..class
  11.  => String
  12.  
  13. > self.method('?')
  14. # NameError (undefined method `?' for class `#<Class:#<Object:0x08ce9188>>')
  15.    
  16. > ?1
  17.  => "1"
  18.  
  19. > ?11
  20. Traceback (most recent call last):
  21.         1: from /home/prs/.rvm/rubies/ruby-2.5.3/bin/irb:11:in `<main>'
  22. SyntaxError ((irb):33: syntax error, unexpected '?')
  23.    
  24. ?a       #=> "a"
  25. ?abc     #=> SyntaxError
  26. ?n      #=> "n"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top