Created
February 5, 2015 03:48
-
-
Save rightgo09/cde09d8df8ff86352fc8 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
| class Task | |
| class Hoge | |
| def self.hoge | |
| puts "hoge!!!!" | |
| end | |
| end | |
| module Foo | |
| def foo | |
| Hoge.hoge | |
| end | |
| end | |
| end | |
| class Task | |
| class Fuga | |
| include Foo | |
| def jjj | |
| foo | |
| end | |
| end | |
| end | |
| Task::Fuga.new.jjj #=> hoge!!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment