[feature][ruby] add feature requested by issue #38