This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_record/connection_adapters/abstract_adapter' | |
require 'mscorlib' | |
require 'System.Data' | |
module System | |
class DBNull | |
def nil? | |
true | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Foo | |
def self.file | |
__FILE__ | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File.dirname("c:/") | |
# IronRuby => "." | |
# Ruby => "c:/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
alias_method :old_inspect, :inspect | |
def inspect | |
"Object inspection: " + old_inspect | |
end | |
end | |
#>>> a = A.new | |
#=> Object inspection: #<A:0x0000076> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yaml' | |
YAML::load('date: [ :year, :month, :day ]') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |