From: matz@... (Yukihiro Matsumoto) Date: 2003-08-14T17:35:28+09:00 Subject: Re: Module methods in nested modules with 1.8.0 In message "Re: Module methods in nested modules with 1.8.0" on 03/08/14, Gavin Sinclair writes: | irb(main):005:0> def ("x").foo | irb(main):006:1> end | SyntaxError: compile error | (irb):5: can't define single method for literals |Not so "arbitrary" after all. No. But how do you call the defined singleton method, considering the fact string literals return independent string objects each time they evaluated. The error is much better than the singleton method vanished away. matz.