Skip to content

Instantly share code, notes, and snippets.

@zwily
Created April 14, 2009 04:14
Show Gist options
  • Save zwily/94965 to your computer and use it in GitHub Desktop.
Save zwily/94965 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
module Kernel
def method_missing(sym, *args, &block)
s = sym.to_s
if s.length > 2 && s[0,2] == 'jt'
real_name = s[2..-1]
send(real_name.to_sym, *args, &block)
end
end
end
jtputs "yo:yo".jtsplit(':').jtjoin('-')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment