[Ironruby-core] question on some code from ironrubymvc

2009-01-29 Thread Ivan Porto Carrero
Hi While working on the code for a ironrubymvc i came across the following code controllerRubyClass.EnumerateMethods((_, symbolId, __) => { if (String.Equals(symbolId, actionName,

[Ironruby-core] ERB

2009-01-29 Thread Paul Wheeler
I playing with using ERB in IronRuby and having a little problem. The code below works fine with Ruby: require 'erb' puts ERB.new('hello world').result but in IronRuby I get this error: IronRuby.Libraries:0:in `require': no such file to load -- erb (LoadError) from :0 Now if I change th

Re: [Ironruby-core] question on some code from ironrubymvc

2009-01-29 Thread Andrew Peters
Cool! I didn't know you could do this. It's just a placeholder when you don't care about that arg. Very functional. On Thu, Jan 29, 2009 at 1:43 PM, Ivan Porto Carrero wrote: > Hi > While working on the code for a ironrubymvc i came across the following > code > > controllerRubyClass.EnumerateM

Re: [Ironruby-core] question on some code from ironrubymvc

2009-01-29 Thread Tomas Matousek
_ and __ are just normal local variables (parameters) scoped to the lambda. Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Andrew Peters Sent: Thursday, January 29, 2009 2:06 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core

Re: [Ironruby-core] ERB

2009-01-29 Thread Tomas Matousek
There should be a line in ir.exe.config that says something like: These paths need to point to your MRI installation. Tomas -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Paul Wheeler Sent: Thursday, January