Created
July 24, 2020 23:21
-
-
Save jaredcwhite/d1b9d1d20fdf584115d2995f9d80da82 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 I | |
class Have | |
def self.a | |
ruby = Struct.new(:Ruby) | |
joke = Struct.new(:joke) | |
ruby.new(joke.new("HAHA")) | |
end | |
end | |
end | |
def but; "but"; end | |
[I::Have.a.Ruby.joke, but...] | |
# => ["HAHA", "but"...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment