Skip to content

BuildingObjects

Josh Schairbaum edited this page Jun 1, 2013 · 2 revisions

Backed By Struct

This technique is probably more useful for dynamic situations.

class Server < Struct.new(:hostname, :ip_address)
end

Further Reading