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
1 answer

Use .NET assembly with same name and namespace as IronRuby standard module

I am self-hosting IronRuby and want to use a .NET assembly "Math.dll" which uses the "Math"-namespace. I can use other assemblies but not this one: require "Math.dll" require "Unsafe.dll" consts = Math.constants #consts =…
Max
  • 81
  • 1
  • 4
0
votes
1 answer

How do I make a dynamic .Net object enumerable from IronRuby?

I have an application that implements several objects in C# and then expects those objects to be usable from IronRuby by adding them to a Microsoft.Scripting.Hosting.ScriptScope. This works for the most part: I've learned how to implement the…
benjamin.popp
  • 547
  • 1
  • 6
  • 20
0
votes
0 answers

Execute Proc on other thread

In IronRuby I can simply change properties of all controls. But as soon as I try to change them from within a other thread, it doesn't work. I also tried to call invoke from the control's dispatcher property, but this didn't work, too. So my…
Cubi73
  • 1,891
  • 3
  • 31
  • 52
0
votes
1 answer

IronRuby: Cannot call method on a COM Object with one or more arguments

When I try and call any method on a COM Object that takes one or more arguments, I get the following error on the last argument: Could not convert argument 0 for call to Open. (ArgumentError) Everything works fine when calling a method that takes…
semmons99
  • 1,134
  • 1
  • 9
  • 13
0
votes
1 answer

IronRuby bug or normal?

I installed IronRuby on my computer and wanted to try simple things like creating a window: require "System.Windows.Forms" include System::Windows::Forms form = Form.new form.Title = "Hello IronRuby" # This doesn't work. ("Undefined method Title=…
Cubi73
  • 1,891
  • 3
  • 31
  • 52
0
votes
3 answers

Ruby .each with removal of items in collection

I am currently working with an app that allows for runtime addition and removal of items in a drop down list via a rub script. The Ruby looks like this SAFE = ; return control if control.CyclesCount == 0; control.Items.each{|item|…
Chris
  • 617
  • 1
  • 7
  • 17
0
votes
1 answer

IronRuby needing a .NET Interface as an argument

I'm using the Revit API for extensible storage using IronRuby, and I think my problem is an IronRuby one. I'm trying to reproduce in IronRuby this C# example from Jeremy Tannik's Revit blog: // create a field to store a string map FieldBuilder…
RealHandy
  • 534
  • 3
  • 8
  • 27
0
votes
1 answer

What are the benefits of using IronPython over IronRuby or F#?

Well aware that DLR is here!! I have recently reading up on all of these and was wondering if there were any specific benefits of using one language over another? For example performance benefits! and available functionality through standard…
Aim Kai
  • 2,934
  • 1
  • 22
  • 34
0
votes
2 answers

Assembly redirection in code instead of app.config

I'm using ironruby to execute a script that loads an assembly with a dependency that needs to be redirected from v2.0.0.0 to v3.5.0.0 in the app.config like this:
Bruno Lopes
  • 2,917
  • 1
  • 27
  • 38
0
votes
1 answer

IronRuby and Cucumber

When running Cucumber 0.5.1 with IronRuby 1.0 RC1, I get the following error: IronRuby.Libraries.Yaml:0:in `ScanAnchor': while scanning an alias: expected alphabetic or numeric character, but found something else...…
cmaduro
  • 1,672
  • 3
  • 21
  • 40
0
votes
1 answer

IronRuby references conflict with System.Linq?

Using Visual Studio 2010, when I add the four IronRuby references to an existing project that uses Linq in several methods, the project won't compile due to not being able to find System.Linq all of a sudden. Does the IronRuby/.Net 4.0 Framework…
Becky Green
  • 625
  • 5
  • 21
0
votes
3 answers

Rails + C# - Reusing Models

I'm working on a project that has a website in Rails and a C# GUI that use the same database and data models. I'd like to share the (active)models between the two parts. Any ideas on how this is possible?
phillee
  • 2,227
  • 2
  • 19
  • 28
0
votes
1 answer

WPF App hosting/executing Ruby code via IronRuby

Hey folks, hoping you can help me get started with IronRuby. I have several Ruby scripts that I want to execute from my WPF Application (due to the use of several RMagick methods I can't get natively) and I can't find any good info on what…
Becky Green
  • 625
  • 5
  • 21
0
votes
2 answers

IronRuby is_a with DateTime

Can anybody explain why DateTime in IronRuby is Object[] sample code IronRuby 0.9.1.0 on .NET 2.0.50727.4927 Copyright (c) Microsoft Corporation. All rights reserved. >>> require 'System' => true >>> t = System::DateTime.Now => Thu Dec 03 15:32:42…
Sergey Mirvoda
  • 3,209
  • 2
  • 26
  • 30
0
votes
1 answer

What made the `ls` command available on Windows? (IronRuby and Rails Installer.)

I'm completely new to Ruby (and thus Rails) and I'm going through Hartl's second edition. Sorry in advance to ask such a novice question; I'm really inexperienced with Windows command-line. I'm confused by the fact that the command-line session that…