Guest User

Untitled

a guest
Jan 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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 '?')
Add Comment
Please, Sign In to add comment