-
-
Save anonymous/cde057ac0e760ae5cf83 to your computer and use it in GitHub Desktop.
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
Struct.new "DummyApp" do | |
def call(*args) | |
end | |
end | |
# Struct::DummyApp.new is how we use this | |
# Is there a way to do something like | |
DummyApp = Struct.new do | |
def call(*args) | |
end | |
end | |
# Or does this not make sense since it's trivial to | |
class DummyApp | |
def call(*args) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment