Skip to content

Instantly share code, notes, and snippets.

Processing PostsController#index (for 127.0.0.1 at 2009-05-06 00:39:41) [GET]
Rendering template within layouts/posts
Rendering posts/index
Completed in 460ms (View: 150, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2009-05-06 00:39:46) [GET]
Rendering template within layouts/posts
Rendering posts/new
Completed in 855ms (View: 672, DB: 0) | 200 OK [http://localhost/posts/new]
# The first load path contains rb files which load .NET based libraries,
# including the standard library and the .NET library
$:
# => ["c:/dev/ironruby/Merlin/Main/Languages/Ruby/libs/",
# "c:/ruby/lib/ruby/site_ruby/1.8/",
# "c:/ruby/lib/ruby/1.8/", "."]
# Special require which enables CLR interop
# (mscorlib.rb doesn't exist on the load path)
require 'mscorlib'
@jschementi
jschementi / mssql_adapter.rb
Created April 22, 2009 21:02
IronRuby MSSQL adapter for System.Data.SqlClient
require 'active_record/connection_adapters/abstract_adapter'
require 'mscorlib'
require 'System.Data'
module System
class DBNull
def nil?
true
end
end
@jschementi
jschementi / foo.rb
Created April 20, 2009 23:08
CodePlex Bug 674
module Foo
def self.file
__FILE__
end
end
Objective C# (15 min)
Ted Neward - ThoughtWorks
4/14 - 10:15am
Intro to a Visual Studio Language Service (15 min)
Ted Neward - ThoughtWorks
4/14 - 11:45am
Tim Macfarlane - 24 Geometric Ldt.
Tycho A small dynamic language for .NET
# repro for http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=545
puts "__FILE__: #{__FILE__}"
puts "$0: #{$0}"
load 'c:\dev/codeplex-545\sub.rb'
load 'c:/dev\codeplex-545/foo\bar.rb'
File.dirname("c:/")
# IronRuby => "."
# Ruby => "c:/"
class A
alias_method :old_inspect, :inspect
def inspect
"Object inspection: " + old_inspect
end
end
#>>> a = A.new
#=> Object inspection: #<A:0x0000076>
require 'yaml'
YAML::load('date: [ :year, :month, :day ]')
# add to Calculator.Tests\tests\function_test.rb
require 'helper'
describe 'Defining functions' do
before do
init_vars
@functions.update_text ''
end
should 'show none with empty code' do