Add terrain support to Ruby interface