From: "Иван Сташко" Date: 2010-07-26T01:56:11+09:00 Subject: General delimiters I would like to create a new general delimiter. ---------- Background Suppose you have created a specific data type which is a combination of various other native data types, such as strings and numbers. Suppose that these are needed throughout your code, so you would like to quickly express them. I have found one way to do this, class WhatEver . . . end def we(o) WhatEver.new(o) end so that I can type a = we " This 73 brqx " in my code as a shorthand for a = WhatEver.new "This 73 brqx" --------- Question I think code would be more readable if I could type, a = %e "This 73 brqx" -> I know there is metaprogramming in Ruby, and Ruby is quite flexible -> The question is... Is this possible? Where is %q, for example, defined? It does not appear to be a method of String or Object or Kernel -> OK, so let's say it's something in C. Where would I modify the C to get this if I would want to? -- Posted via http://www.ruby-forum.com/.