Struct.new could take a block for defining methods, feedback:
Struct.new could take a block for defining methods, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_15091858

screenpages/gitlabhq,allysonbarros/gitlabhq,SVArago/gitlabhq,darkrasid/gitlabhq,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,SVArago/gitlabhq,daiyu/gitlab-zh,shinexiao/gitlabhq,screenpages/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,openwide-java/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,LUMC/gitlabhq,darkrasid/gitlabhq,darkrasid/gitlabhq,iiet/iiet-git,htve/GitlabForChinese,LUMC/gitlabhq,axilleas/gitlabhq,jirutka/gitlabhq,dplarson/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,icedwater/gitlabhq,jirutka/gitlabhq,daiyu/gitlab-zh,dplarson/gitlabhq,dplarson/gitlabhq,iiet/iiet-git,daiyu/gitlab-zh,icedwater/gitlabhq,SVArago/gitlabhq,axilleas/gitlabhq,htve/GitlabForChinese,dreampet/gitlab,jirutka/gitlabhq,LUMC/gitlabhq,dplarson/gitlabhq,openwide-java/gitlabhq,t-zuehlsdorff/gitlabhq,SVArago/gitlabhq,darkrasid/gitlabhq,screenpages/gitlabhq,stoplightio/gitlabhq,shinexiao/gitlabhq,shinexiao/gitlabhq,iiet/iiet-git,allysonbarros/gitlabhq,mmkassem/gitlabhq,shinexiao/gitlabhq,allysonbarros/gitlabhq,screenpages/gitlabhq,t-zuehlsdorff/gitlabhq,allysonbarros/gitlabhq,openwide-java/gitlabhq,htve/GitlabForChinese,daiyu/gitlab-zh,icedwater/gitlabhq,icedwater/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,LUMC/gitlabhq,openwide-java/gitlabhq,htve/GitlabForChinese,dreampet/gitlab,dreampet/gitlab