------extPart_000_42F4_01CCC5FD.859C1BE0
Content-Type: text/plain;
	charsets-ascii"
Content-Transfer-Encoding: 7bit

 
 
Da: Intransition [mailto:transfire / gmail.com] 
Inviato: sabato 12 novembre 2011 21:20
A: ruby-talk ML; ruby-talk-google / googlegroups.com
Oggetto: Advanced Ruby: Eval over multiple Bindings?
 
This is an extremely advanced Ruby question. Given:
 
  def binding1
    a  
    binding
  end
 
  def binding2
    b  
    binding
  end
 
  eval('a', binding1)  #1
  eval('b', binding2)  #2
 
Is there a way to "merge" the binding to do something like:
 
  eval('a + b', binding1 + binding2)  #3
 
 

 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 Conto Arancio al 4,20%. Soldi sempre disponibili, zero spese, aprilo in due minuti!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid923&d)-12

------extPart_000_42F4_01CCC5FD.859C1BE0--