Skip to content

Instantly share code, notes, and snippets.

@pointcom
Last active January 3, 2018 21:27
Show Gist options
  • Save pointcom/25d4bb7e690bb82ea9d295edaa5d3439 to your computer and use it in GitHub Desktop.
Save pointcom/25d4bb7e690bb82ea9d295edaa5d3439 to your computer and use it in GitHub Desktop.
Ruby 2.5
%w[ant bear cat].all?(/t/)
=> false
[1, 2i, 3.14].all?(Numeric)
=> true
[1, 2, 3].all?(1..3)
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment