A simple promises implementation in Ruby.