What does the construct "?/" refer to in Ruby?
January 14, 2008 2:09 PM
Subscribe
What does the construct "?/" refer to in Ruby?
The Pragmatic guide for TextMate includes an code fragment that has me stumped. It's essentially "
if foo == ?/ then bar" What is the
?/, though?
irb(main):001:0> ?/
=> 47
irb(main):002:0> ?/.class
=> Fixnum
Google is being singularly unhelpful here, since it doesn't like to search for punctuation. The book's
errata offers no further hints.
posted by nakedcodemonkey to computers & internet (6 comments total)
1 user marked this as a favorite
Ruby syntax doc
posted by smackfu at 2:23 PM on January 14, 2008