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] r169 problem

2008-11-18 Thread Andrew Peters
OTECTED] On Behalf Of Andrew Peters > Sent: Monday, November 17, 2008 10:39 PM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] r169 problem > > Update: This is still broken on 172 except I had to change: > > def CoreRender(text_writer) > > to: > &g

Re: [Ironruby-core] r169 problem

2008-11-17 Thread Andrew Peters
Update: This is still broken on 172 except I had to change: def CoreRender(text_writer) to: def core_render(text_writer) first. Cheers, Andrew. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org

Re: [Ironruby-core] StackOverflowException when accessing object properties

2008-11-14 Thread Andrew Peters
I think this is because you need to reference the IronRuby.Libraries dll. Strange error I know. On Sat, Nov 15, 2008 at 7:33 PM, Benjamin Van der veen <[EMAIL PROTECTED] > wrote: > Hello all, > > Why does the stack overflow? > > class Program > { >static void Main(string[] args) >{ >

[Ironruby-core] r169 problem

2008-11-04 Thread Andrew Peters
Hi, After trying out 169, all my previously passing tests are now failing with: failed: System.InvalidCastException : Unable to cast object of type 'IronRuby.Runtime.RubyTopLevelScope' to type 'IronRuby.Runtime.RubyContext'. C:\Dev\ironruby\trunk\src\ironruby\Runtime\Calls\CallArguments.

Re: [Ironruby-core] Complex Inheritance Issue

2008-11-02 Thread Andrew Peters
ustomBaseClass_haml.superclass? > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Peters > Sent: Sunday, November 02, 2008 7:55 PM > To: ironruby-core@rubyforge.org > Subject: [Ironruby-core] Complex Inheritance Issue > >

[Ironruby-core] Complex Inheritance Issue

2008-11-02 Thread Andrew Peters
I have this test case which throws an error: class Templates_IronRuby_CustomBaseClass_hamlhttp://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Another Interop Question

2008-10-30 Thread Andrew Peters
No worries, I've found what I need in Phil Haack's IronRuby view engine sample. Cheers, Andrew. On Fri, Oct 31, 2008 at 12:25 AM, Andrew Peters <[EMAIL PROTECTED]> wrote: > From C#, is it possible to new up an instance of an IronRuby class and > then invoke a method on it?

[Ironruby-core] Another Interop Question

2008-10-30 Thread Andrew Peters
>From C#, is it possible to new up an instance of an IronRuby class and then invoke a method on it? I.e: var ruby = new StringBuilder(); ruby.AppendLine("class MyClass"); ruby.AppendLine(" def render"); ruby.AppendLine("\"Hello!\""); ruby.AppendLine(" end"); ruby.AppendLine("end"); var sc

[Ironruby-core] Passing block to CLS method via Action

2008-10-30 Thread Andrew Peters
Will this ever be supported? // c# public void Tag(Action action) { action(); } // rb tag do puts 'yay!' end Cheers, Andrew. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

[Ironruby-core] Calling super from CLS override

2008-10-29 Thread Andrew Peters
Hi, Was wondering if this is currently possible as I'm currently getting: System.ArgumentException : wrong number or type of arguments for `Render' at _stub_$19##19(Closure , CallSite , RubyMethodScope , Object , Proc , Object ) C:\Dev\ironruby\trunk\src\Microsoft.Scripting.Core\

Re: [Ironruby-core] IronRuby on Netbeans

2008-08-27 Thread Andrew Peters
> Here's a more interesting question: do you care what language Rails is > implemented in as long as you wrote your Rails app in Ruby? Interesting. No, so long as monkey patching still works (plugins). Andrew. ___ Ironruby-core mailing list Ironruby-cor

Re: [Ironruby-core] SVN r114 is out

2008-06-12 Thread Andrew Peters
Except there is a bug... o.dispose if o :-) On Fri, Jun 13, 2008 at 3:45 PM, Ivan Porto Carrero <[EMAIL PROTECTED]> wrote: > Cool passing it a bool makes it work :) > > I stole the function of Andrew Peters when I saw it I thought the same > thing :) > > Do I subm

[Ironruby-core] NKF Platform Dependencies & Mono

2008-05-16 Thread Andrew Peters
Hi All, I've got NKF up and running and passing the (very few) standard unit tests that come with it. I've got a problem however. My implementation currently relies on the Win32 platform API DetectInputCodepage to perform character encoding detection (there seems to be no managed equivalent) whi

[Ironruby-core] rake test

2008-05-13 Thread Andrew Peters
Should I be able to run these? I'm currently getting this error: :0:in `do_generate': undefined local variable or method `methods' for main:Object (NoMethodError) from :0:in `#block162' from c:\Projects\IronRuby\trunk\src\IronRuby.Libraries\Extensions\IListOps.cs:785:in `Each'

Re: [Ironruby-core] Standard library inventory

2008-05-12 Thread Andrew Peters
I'm working on NKF which was the first blocker I encountered after I started looking at sqlite3-ruby. Is anyone else working on sqlite? Andrew. On Tue, May 13, 2008 at 4:49 AM, Jim Deville <[EMAIL PROTECTED]> wrote: > Just so you are aware, when we switch to the new spec suite (this week > afte

[Ironruby-core] PATCH: $KCODE global variable

2008-05-05 Thread Andrew Peters
Hi All, I'm keen to help out the effort and so I started having a look at implementing the nkf library. I'm about half done on nkf but it requires $KCODE so I thought I'd contribute that first on it's own. Still finding my way around so all feedback appreciated :-) Cheers, Andrew. P.S. Sorry a