Please feel free to contribute a Ruby example (as long as it's normal and idiomatic, this isn't a competition)! I've not written Ruby for years.
(inc was just a random function for the sake of showing invocation so it's not really fair to use operators)