Skip to content

Instantly share code, notes, and snippets.

diff --git a/Merlin/Main/Hosts/IronRuby.Rack/IIS.cs b/Merlin/Main/Hosts/IronRuby.Rack/IIS.cs
index 71d69a1..7ef07f7 100644
--- a/Merlin/Main/Hosts/IronRuby.Rack/IIS.cs
+++ b/Merlin/Main/Hosts/IronRuby.Rack/IIS.cs
@@ -56,11 +56,11 @@ namespace IronRuby.Rack.Handler {
// application knows its virtual "location". This may be an empty
// string, if the application corresponds to the "root" of the
// server.
// The SCRIPT_NAME, if non-empty, must start with /
include System::Collections::Generic
class List
def foo
self.class
end
end
List.of(Fixnum).new.foo
# => System::Collections::Generic::List[Fixnum]
require 'win32ole'
# Creates OLE object to Excel
excel = WIN32OLE.new("excel.application")
# Create the chart
excel['Visible'] = true
workbook = excel.Workbooks.Add
excel.Range("a1")['Value'] = 3
excel.Range("a2")['Value'] = 2
Foo = 1
class Bar(object):
def baz(self):
print Foo
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Scripting.Hosting;
namespace simple_scripting {
class Program {
static IDictionary<string, Action> _commands = new Dictionary<string, Action>();
static Hosting _host;
require 'rubygems'
require 'test/spec'
require 'mscorlib'
include System::Collections
describe '.NET Stack instantiation' do
it 'can create an empty stack' do
@stack = Stack.new
@stack.should.be.a.kind_of System::Collections::Stack
T.user_name
replies = T.get_replies
replies.first.text
U.delegate_user_timeline_fetch "oscon"
def add x, y
x + y
end
add 3, 4
%python
class Bob(object):
def __init__(self):
using Moonlight.Gtk;
using Moonlight;
public static void Main(string[] args)
{
n = LoadNodes (args [0], "Size", "Foo");
Gtk.Application.Init ();
MoonlightRuntime.Init ();
#rupert@linux:~/Desktop/oscon09/ironruby/Merlin/Main/Bin/Release> ir
#IronRuby 0.6.0.0 on Mono 2.4.2.1
#Copyright (c) Microsoft Corporation. All rights reserved.
#
puts 2 + 2
#4
#=> nil
(1..10).inject{|sum, i| sum += i}
#=> 55
System::Environment.OSVersion