First shot at using Scala functions as JRuby blocks.