I'm wondering how I can read the current working directory of a file being "parsed" by IronRuby. It appears the "execution directory" is the same as the ir.exe file.
I need this to create a relative path to content in a XNA solution without hardcoding the path.
...
I'm experimenting with IronRuby and WPF and I'd like to write my own commands. What I have below Is as far as I can figure out.
class MyCommand
include System::Windows::Input::ICommand
def can_execute()
true
end
def execute()
puts "I'm being commanded"
end
end
But the ICommand interface defines the CanExecuteChanged...
I need to build a scripting interface for my C# program that does system level testing of embedded firmware.
My application contains libraries to fully interact with the devices. There are separate libraries for initiating actions, getting output and tracking success/failure. My application also has a GUI for managing multiple devices a...
I want to some very basic IronRuby tests, such as checking the syntax on a regular expression, and if possible would like to be able to do it thorugh my browser. Does anyone know of a site that hosts an IronRuby in Silverlight demo?
...
Hello. I have created a small C# class in a library.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace helloWorldLib
{
public class Greeter
{
public string SayHelloWorld(string name)
{
return "Hello world " + name;
}
}
}
The library is loca...
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 seems to be the latest avatar of the BDD story runner.
Followed the examples on cukes.info...
Just curious how is the .NET 4.0 CLR world going to call methods ending in question marks and exclamations? What will the syntax look like calling from C# or VB.NET?
...
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 any of the .csproj files in the solution
Unable to read project file '<something>.cspro...
I found cool article on Creating cross platform GUI's with IronRuby where someone re-created the Shoes DSL by _why the lucky stiff in IronRuby.
Awesome right!
So, I downloaded the IronRuby binaries and the code from the article and ran the following command:
c:\IronRuby\bin\ir hello_world.rb
But I get the following error:
:0:in ...
I see that the IronRuby team has documented using ActiveRecord in IronRuby with MSSQL - they indicate that some adjustments were required to the adapter.
In interview on 8/11/2009, Jimmy indicates a major drawback of IronRuby:
The main limitation is that IronRuby does not support any
of the C-based Ruby libraries
That indica...
What is the approach to get SQLite-ruby working in IronRuby?
...
I'd like to use a RubyGem in my C# application.
I've downloaded IronRuby, but I'm not sure how to get up and running. Their download includes ir.exe, and it includes some DLLs such as IronRuby.dll.
Once IronRuby.dll is referenced in my .NET project, how do I expose the objects and methods of an *.rb file to my C# code?
Thanks very muc...
I'm on a .NET project, and I would like to migrate build script from MsBuild to Rake. I don't want to force developers (or build agent machines) to have to install anything, I want it to be self contained. If possible I'd prefer to use IronRuby.
Is it possible to just drop everything in /tools/rake and /tools/IronRuby and have it just w...
Has anyone used Watir with IronRuby successfully? I am getting an error that the required file 'Watir' was not found. What path do I need to set to get this file to work in IronRuby?
For some reason my igem command is not working:
C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>igem instal
l watir
'"C:\DevTools\I...
Hi all,
I've been very happily using the Model-View-ViewModel (MVVM) pattern in WPF and Silverlight apps in combination with C#. Declarative XAML markup and data binding are invaluable - I just can't live without them. But, this talk by Harry Pierson on dynamic languages got me excited about learning a dynamic language, and I'd like to ...
Coming from the Ruby community and approching IronRuby for desktop application development, I have little interest in using a .NET based ORM such as Linq. I want to use the ruby-way of data access that I've come to love from products such as ActiveRecord, DataMapper, and Sequel.
After much searching I ran into a brick wall trying to ge...
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 columnNames)
{
if (dataGridView.Columns[str] != null)
{
...
When I embed IronRuby what is the proper way to get a reference to either Ruby's DateTime/Date classes or .NET's System.DateTime. I'm running into errors when I try
require 'date'
I get the error - no such file to load -- date
when I try
require 'mscorlib.dll'
I get the error - no such file to load -- mscorlib.dll
What is the right w...
With the preview 2 release of ASP.NET MVC 2, we now have base classes to implement our own custom providers for metadata and validation. Specifically, with ModelMetadataProvider and ModelValidatorProvider.
There isn't a lot of documentation on these yet (just released yesterday as a preview, so I'm neither surprised nor disappointed).
...
Hi
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
...