# * George Moschovitis # (c) 2004-2005 Navel, all rights reserved. # $Id: flexob.rb 1 2005-04-11 11:04:30Z gmosx $ require 'ostruct' # A flexible Object. # Temporarily implemented as a simple OpenStruct. class Flexob < OpenStruct def update(hash) hash.each do |k, v| send("#{k}=", v) end end alias_method :set, :update end