Use reflection in Ruby renderer