Stdlib Minitest spec — no extra gems needed.
Language: Ruby
Cache an expensive call with the `||=` idiom.
Generate a v4 UUID with the SecureRandom stdlib.
Parse CLI flags with the stdlib OptionParser.
Fan out HTTP calls across threads and join them.
Define a model and run a chained where/order query with ActiveRecord.
Bare-minimum Sinatra app responding to GET /.
Find every `.rb` file under a tree with Dir.glob and `**` recursion.
Sort an array of hashes by a numeric attribute using sort_by.
Use named captures and MatchData to extract fields.