Created
December 16, 2014 05:08
-
-
Save danielspector/0ffe4d69eaf6c3386b65 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| module Keywords | |
| extend self | |
| def create(attributes: nil, parent_id: nil) | |
| puts attributes | |
| end | |
| def hello | |
| puts "hello" | |
| end | |
| end | |
| module Test | |
| class Hello | |
| extend Keywords | |
| class << self | |
| def create(first, second, third) | |
| new_arr = [first, second, third] | |
| super.create(attributes: new_arr) | |
| end | |
| end | |
| end | |
| end | |
| module Standard | |
| class Hello | |
| extend Keywords | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment