Skip to content

Instantly share code, notes, and snippets.

@banister
Created February 15, 2009 19:45
Show Gist options
  • Save banister/64830 to your computer and use it in GitHub Desktop.
Save banister/64830 to your computer and use it in GitHub Desktop.
class Class
def pure_virtual_function(name)
class_eval %{
def #{name}(*args, &block)
raise NotImplementedError, "this function needs an implementation"
end
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment