From: ts Date: 2001-12-11T21:19:43+09:00 Subject: [ruby-talk:28206] Re: Ensuring a specific type >>>>> "F" == Fabian Senftenberg writes: F> Well, that makes my point (or question) even stronger. How do I ensure F> that @start and @duration are of type Time in order to allow the F> following: Check it, in #initialize for example def initialize(s, d = 0) @start = if s.kind_of? Time s else Time.new + s end @duration = d end Guy Decoux