Skip to content

Instantly share code, notes, and snippets.

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