Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created October 14, 2014 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save practicingruby/7fe586907146742af58d to your computer and use it in GitHub Desktop.
Save practicingruby/7fe586907146742af58d to your computer and use it in GitHub Desktop.
class Chainable
def initialize(target)
@target = target
end
def method_missing(*a, &b)
@target.send(*a, &b)
self
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment