-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 12.11.2011 21:19, schrieb Intransition:
> Is there a way to "merge" the binding to do something like:
> 
> eval('a + b', binding1 + binding2)  #=> 3

Not sure if that”Ēs exactly what you want, but this works:

  binding1.eval("a + binding2.eval('b')") #=> 3

This is not 'merging' the two bindings, it rather opens the second
binding inside the first one.

Regarding Binding#eval, is there a specific reason why it can”Ēt take a
block instead of a string, the same way e.g. Module#instance_eval does?

Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOvuB4AAoJELh1XLHFkqha8J4H/j5bp6DYVoSrwJoIk+pXQ1pI
j98OCgUTmjZDED3C2EJ5y1SEPrDwGQ22pDtfExIWvpIz9GH2BAUVTRip+LyZmzJy
wJhn3CuKnwUvvsZukzgTn0kPwkCSUGRo6oxVKf5bKC1P3oU2H2qAlYoK2J1G1yHb
nOEB+uGwPr+kDphwZeEbeNX8vO7ZyepMv5Zoiq1m+DlvHPPwFadZWX4Cwqhot5OZ
EGT0J6R4slLW29ys1uxaoVScm9d/7POa9khqwUl7hiyWSdvHn38MOByD/e2tM8Sz
PjdoBwgnfGreWOAmyjQYSrSJfiHmVeUTFb8Cphv/COPulo9MkyNJes5AGkigpn0=
=8CNX
-----END PGP SIGNATURE-----