To access the .NET framework from MRI (the Ruby implementation you are currently using), your best bet is to use RubyCLR: http://rubyforge.org/projects/rubyclr/. It is a native bridge between Ruby and the CLR, using Ruby's Win32OLE support to talk directly to the CLR hosting APIs.
~js ________________________________________ From: [email protected] [[email protected]] on behalf of Ameer Deen [[email protected]] Sent: Monday, December 28, 2009 6:58 AM To: [email protected] Subject: [Ironruby-core] Using IronRuby from Ruby (newbie) Hello, I'm working in an environment that's very Ruby heavy and I've never used ruby before. I need to be able to access Windows performance counters in from a Windows service is written in native Ruby (not IronRuby). I'm traditionally a C# and JAVA programmer. I was wondering if it might be possible for Ruby to be able to access the .Net System.Diagnostics performance counters via IronRuby. Of course, if there's a much simpler way I'm all ears. I tried searching the forum and it seems my searching skills are not up to par and apologize if this has been already answered. Thanks in advance for any help. Ameer. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
