Skip to content

Comments

Cleaner way to write class methods#5

Merged
knu merged 1 commit intoruby:masterfrom
herwinw:cleanup_class_methods
Feb 15, 2018
Merged

Cleaner way to write class methods#5
knu merged 1 commit intoruby:masterfrom
herwinw:cleanup_class_methods

Conversation

@herwinw
Copy link
Member

@herwinw herwinw commented Oct 16, 2017

  • Use def self. instead of repeating the classname
  • Don't prefix class methods with the class from inside class methods

* Use `def self.` instead of repeating the classname
* Don't prefix class methods with the class from inside class methods
@knu knu merged commit 3b84c78 into ruby:master Feb 15, 2018
@herwinw herwinw deleted the cleanup_class_methods branch February 15, 2018 17:11
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