Skip to content

Instantly share code, notes, and snippets.

@sixtyfive
Created July 5, 2023 14:49
Show Gist options
  • Save sixtyfive/52bcc0e42261289a4ea907e6907ec580 to your computer and use it in GitHub Desktop.
Save sixtyfive/52bcc0e42261289a4ea907e6907ec580 to your computer and use it in GitHub Desktop.
def get_foobarbazzes
foo = begin
current_foo
rescue StandardError
nil
end
bar = begin
current_bar
rescue StandardError
nil
end
baz = begin
current_baz
rescue StandardError
nil
end
[foo, bar, baz]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment