Saturday 14 December 2013

ruby % things

  • %r() is another way to write a regular expression.
  • %q() is another way to write a single-quoted string (and can be multi-line, which is useful)
  • %Q() gives a double-quoted string
  • %x() is a shell command
  • %i() gives an array of symbols (Ruby >= 2.0.0)

http://stackoverflow.com/questions/1274675/ruby-what-does-warray-mean

No comments:

Post a Comment