lib/timing/time_in_zone.rb in timing-0.2.3 vs lib/timing/time_in_zone.rb in timing-0.2.4

- old
+ new

@@ -43,11 +43,11 @@ def to_utc self.class.new time, 0 end alias_method :getutc, :to_utc - alias_method :utc, :to_utc + # alias_method :utc, :to_utc def to_zone(zone_offset) self.class.new time, zone_offset end @@ -138,10 +138,14 @@ def time_with_offset time.getutc + zone_offset end def method_missing(method, *args, &block) - time.send method, *args, &block + time.public_send method, *args, &block + end + + def respond_to_missing?(method, include_private=false) + super || time.respond_to?(method) end end end \ No newline at end of file