Skip to content

Instantly share code, notes, and snippets.

@joshuaflanagan
Created May 10, 2010 22:19
Show Gist options
  • Save joshuaflanagan/396623 to your computer and use it in GitHub Desktop.
Save joshuaflanagan/396623 to your computer and use it in GitHub Desktop.
##### Using ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
C:\code>irb
irb(main):001:0> include FileTest
=> Object
irb(main):002:0> exists? 'foo'
=> false
irb(main):003:0>
### Using IronRuby 1.0
C:\code>ir
IronRuby 1.0.0.0 on .NET 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
>>> include FileTest
=> Object
>>> exists? 'foo'
(ir):1: undefined method `exists?' for main:Object (NoMethodError)
>>> FileTest.exists? 'foo'
=> false
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment