Rubyについて Part 2
■ このスレッドは過去ログ倉庫に格納されています
0357デフォルトの名無しさん
NGNGGroup = Struct.new(:humanResource, :finance, :activeField, ...以下略)
def group(name)
group = Group.new
group.humanResource = HumanResource.new(name)
group.finance = Finance.new(name)
group.activeField = ActiveField.new(name)
<略>
group
end
sony = group("sony")
■ このスレッドは過去ログ倉庫に格納されています