Skip to content

Instantly share code, notes, and snippets.

/dummy_app.rb Secret

Created February 26, 2016 05:14
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