lib/TimeObj.rb
# An interface to deal with passed-in time objects which
# may have a variety of interfaces. 
An interface to deal with passed-in time objects which
may have a variety of interfaces.
An interface to deal with passed - in time objects which may have a variety of interfaces .
def merge(params)
		if @data.respond_to? :attributes
			return @data.class.new(@data.attributes.merge(params))
		elsif @data.respond_to? :merge
			return @data.merge(params)
		end
		raise ArgumentError.new('Objects that are represented as times must respond to :attributes or :merge.')
	end
def merge ( params ) if @data . respond_to? :attributes return @data . class . new ( @data . attributes . merge ( params ) ) elsif @data . respond_to? :merge return @data . merge ( params ) end raise ArgumentError . new ( 'Objects that are represented as times must respond to :attributes or :merge.' ) end
An interface to deal with passed-in time objects which
may have a variety of interfaces.
An interface to deal with passed - in time objects which may have a variety of interfaces .
params
<not_specific>