[Ironruby-core] Running IronRuby script from C#
dipidi at gmail.com
Tue Nov 2 15:49:01 EDT 2010
confirmed. you probably created the file inside VS, or other UTF happy
if you insist you might want to try the encoding pragma, but i'm not sure of
# coding: utf-8
On Tue, Nov 2, 2010 at 9:41 PM, Dotan N. <dipidi at gmail.com> wrote:
> before i think about it too much, it seems you have some unicodish chars in
> the file?
> On Tue, Nov 2, 2010 at 8:07 PM, Timothy Barnes <lists at ruby-forum.com>wrote:
>> I am trying to get a Ruby file to run through C#. I was reading through
>> "Ruby Unleashed" (book), and it appears to be easy. However, I keep
>> getting an error on a very simple test. The text of my programs are:
>> using System;
>> using Microsoft.Scripting.Hosting;
>> using IronRuby;
>> class Run_Ruby
>> static void Main()
>> ScriptEngine engine = IronRuby.Ruby.CreateEngine();
>> puts 'hello'
>> When I run the program I get:
>> "MissingMethodException was unhandled"
>> "undefined method `ï»¿puts' for main:Object"
>> I am a novice to C#, but this should be hard. What am I doing wrong?
>> Posted via http://www.ruby-forum.com/.
>> Ironruby-core mailing list
>> Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core