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
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
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
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)
>{
>
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.
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
>
>
I have this test case which throws an error:
class
Templates_IronRuby_CustomBaseClass_hamlhttp://rubyforge.org/mailman/listinfo/ironruby-core
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?
>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
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
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\
> 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
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
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
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'
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
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
17 matches
Mail list logo