Skip to content

Instantly share code, notes, and snippets.

/dummy_app.rb Secret

Created February 26, 2016 05:14
Show Gist options
  • Save anonymous/cde057ac0e760ae5cf83 to your computer and use it in GitHub Desktop.
Save anonymous/cde057ac0e760ae5cf83 to your computer and use it in GitHub Desktop.
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