2011/6/1 Ilias Lazaridis <ilias / lazaridis.com>:
> Can I have now an in-topic reply?
>
> "Is there any *existent* library (ruby 1.9) availbale, which enables
> an
> alternative variable substitution".

You don't need a library for that.  It can be as easy as

class String
  def replace(bind)
    gsub %r{(?<!\\)&(\w+)} do |m|
      eval($1, bind)
    end
  end
end

name = "foo"
puts "&name has 5 credits".replace binding

Other equally simple variants can be implemented.

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/