Skip to content

Instantly share code, notes, and snippets.

@madx
Created January 3, 2009 22:27
Show Gist options
  • Save madx/42941 to your computer and use it in GitHub Desktop.
Save madx/42941 to your computer and use it in GitHub Desktop.
class Term
def method_missing(meth, *args)
cmd = args.unshift(meth).collect! {|a| a.to_s }.join(' ')
puts `tput #{cmd}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment