moved one general-purpose (abstract) method to alloy_ruby