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
# libxml-ruby segfault | |
require 'rubygems' | |
require 'xml' | |
def try(&block) | |
begin | |
yield if block_given? | |
rescue | |
puts "err: #{$!}" |
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
stargate:rb mchung$ cat binding.rb | |
# Return bindings | |
def f | |
a = 42 | |
b = "foo" | |
binding | |
end | |
f_vars = f() |
NewerOlder