Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler method to find the subclass name #139

Merged
merged 1 commit into from
Nov 30, 2014
Merged

Conversation

brendon
Copy link
Owner

@brendon brendon commented Nov 26, 2014

In swanandp#123 the method used to get the class name seems quite convoluted. I've done some testing and found calling self.class works fine in this scenario. I've added some tests for this too.

Let me know if I've missed something.

Memoising also doesn't seem necessary as the test suite runs just as fast without it.

@brendon
Copy link
Owner Author

brendon commented Nov 29, 2014

Can I merge this in? :)

@swanandp
Copy link
Contributor

👍

brendon added a commit that referenced this pull request Nov 30, 2014
Simpler method to find the subclass name
@brendon brendon merged commit e5976d4 into master Nov 30, 2014
@brendon brendon deleted the simple_class_name branch November 30, 2014 15:15
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.

2 participants