Implementation of chai in Ruby