Skip to content

Conversation

@henrikholm89
Copy link

So the problem was basically this:

If you use define_method on self.class, you'll create the new method as an instance method on the 
whole class so it will be available as a method on all instances of the class.

You can read more here:
https://stackoverflow.com/questions/19368437/how-to-use-define-method-inside-initialize

@henrikholm89
Copy link
Author

Fixes #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant