On Nov 12, 9:25 am, Jay Levitt <jay+n... / jay.fm> wrote:
> Trans, you know I love your work, babe, but you've given a "Microsoft tech
> support talking to the guy in the helicopter" answer (or whatever your
> favorite version of that joke is).
>
> Yes, you've just created a method on a method, but the fact that it happens
> to return the word "String" doesn't tell the guy anything prescriptive
> about the return type.  You could just as easily return "purple", but it
> doesn't mean the result will be purple.

My bad! I didn't realize Thilina was trying to land a helicopter ;) I
was focusing on the metadata propellers and not the return landing
pad.

Well, I suppose there's always

  m = method(:foo)
  define_method(:foo) do |str|
    String(m.call(str))
  end

It's a String now! ;)

T.