Questions tagged [ironruby]

IronRuby is an open-source implementation of the Ruby programming language which is tightly integrated with the .NET Framework.

268 questions
0
votes
2 answers

Creating VIsual Studio Addins with Iron Ruby

Some time ago at one of the .Net conferences John Lam gave a demonstration of how to use Iron Ruby to create VS add in's. At the time it seemed alot easier than what you currently have to do to create new VS add in's. Where can I get an example of…
RC1140
  • 8,423
  • 14
  • 48
  • 71
0
votes
2 answers

How do I automatically add dlls to ironruby engine

I want to automatically add loaded dll of the current application into ironruby engine so that each time I execute a script I won't specify the "require" script anymore. Thanks a lot.
Marc Vitalis
  • 2,129
  • 4
  • 24
  • 36
0
votes
2 answers

Calling a generic method from IronRuby

How can I call a generic method (.NET 3.5 SP1) from IronRuby v0.9? Trying to do something as obj.method(:method_name).of(String).call seems not to work as "of" is an unknown method. Thanks a lot
JPW
  • 1,201
  • 11
  • 13
0
votes
1 answer

How to set function on ScriptScope

How can I set a delegate on a ScriptScope under IronRuby? I tried the above code but I got an ArgumentException when calling the function. scope.SetVariable("import", new Action(DSLImport)); import "Data" Also, how can I use the above code…
greenboxal
  • 469
  • 3
  • 16
0
votes
3 answers

IronRuby calling C# Extension Methods - Error - Compatibility in .NET 3.5

I have written an Extension Method off of DataGridView called HideColumns. public static class Extensions { public static void HideColumns(this DataGridView dataGridView, params string[] columnNames) { foreach (string str in…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
0
votes
1 answer

Where can I find Silverlight templates for Windows Phone 7 applications?

I need Silverlight in order to use IronRuby, as Silverlight provides the DRL. However, I can't find a template for creating Silverlight Windows Phone applications in Visual Studio 2012 for Windows Phone. Can someone point me to such a template?…
mcandre
  • 22,868
  • 20
  • 88
  • 147
0
votes
2 answers

IronRuby, How make ruby file executed from the regular C# project directory rather than bin\debug folder?

Finding a proper title for my question wasn't easy, please feel free to re-edit if needed. Now: In the following code the program crashes as soon as it runs. using System; using IronRuby; using IronRuby.Runtime; namespace IronRuby_Test_03 { …
TheScholar
  • 2,527
  • 5
  • 23
  • 25
0
votes
2 answers

Run Shoes clone in IronRuby

I found cool article on Creating cross platform GUI's with IronRuby where someone re-created the [Shoes](http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit) DSL by _why the lucky stiff in IronRuby. Awesome right! So, I downloaded the IronRuby…
jrhicks
  • 14,759
  • 9
  • 42
  • 57
0
votes
1 answer

How do I build IronRuby on Visual C# 2008 Express Edition?

From the docs it should be possible. I built it on VS 2008 myself - so the source (Sep 8 Master) is okay. I'm trying to build it now with VS Express Edition on this machine. Installed 4.0 Framework Beta 1. Open the Ruby.sln file ; the IDE won't open…
Gishu
  • 134,492
  • 47
  • 225
  • 308
0
votes
2 answers

undefined method 'bin_path' error on invoking cucumber with ironruby

Just riding on the BDD wave for the past 2 days.. I was intrigued with Aslak Hellesoy's InfoQ video on RSpec. Specifically with the language agnostic integration testing framework claims.. SO I was looking at testing a .Net app with Cucumber which…
Gishu
  • 134,492
  • 47
  • 225
  • 308
0
votes
0 answers

Operation not valid due to current state of the object error in IronRuby

I have a ruby script that telnets into something and creates an output file. I am trying to call the script by using the following code: ScriptEngine rubyengine = IronRuby.Ruby.CreateEngine(); rubyengine.ExecuteFile(@"\Documents\query.rb"); and am…
Josh Bibb
  • 477
  • 4
  • 14
0
votes
1 answer

Correct C# class instantiation in IronRuby

I wrote the following Ruby code file: require 'MyAssembly.dll' class MyClass def initialize(obj) System::Diagnostics::WriteLine('test') @var = MyAssembly::Namespace::CSharpClass.new end end MyClass CSharpClass is a class…
Dmitry Polyanitsa
  • 1,083
  • 9
  • 18
0
votes
1 answer

How to access a base class property (variable) in ironruby?

I'm trying to do some XNA development with IronRuby but are struggling with both generics (Load) and accessing some of the base-class properties such as Content. Any hints?
0
votes
1 answer

building ironruby for VS2008

I am trying to build Ironruby for VS 2008 but the project files require VS 2010 and .net 4.0. Unfortunately I cannot use that as we are building a windows Compact Embedded 7 app which uses VS 2008/.net 3.5. From what I understand the mono…
reprazent74
  • 95
  • 1
  • 8
0
votes
4 answers

Is it possible to use jruby to write an applet or is it better to use iron ruby for silverlight?

If I wanted to dabble with ruby, would it be easier to write an applet in Jruby or a Silverlight XAP with iron ruby? So far all I have is a vague idea that it might be possible.
MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
1 2 3
17
18