Skip to content

Instantly share code, notes, and snippets.

@nthx
Created May 16, 2012 23:19
Show Gist options
  • Save nthx/2714844 to your computer and use it in GitHub Desktop.
Save nthx/2714844 to your computer and use it in GitHub Desktop.
ObjectHelper
class ObjectHelper
@addRole: (base, role) =>
if not role::augment?
throw "RoleMustHave.augment()"
role::augment(base)
_.bindAll(base)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment