【发布时间】:2019-06-07 15:42:42
【问题描述】:
我有如下功能:
def test
{
testId: self.test_id,
testTime: self.test_time,
testType: self.test_type,
city: self.city
......... many such variables
}
end
我想知道是否有一个很好的方法来重写这篇文章。我想知道最好的办法是什么。
【问题讨论】:
标签: ruby