This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you wanted to make a constructor that did some extra stuff | |
# on the newly created object before giving it back to you | |
# you might be tempted to write it like you would in Ruby: | |
class Modal | |
@load: -> | |
modal = new this | |
modal.load | |
modal | |