lib/gloo/objs/dt/date.rb in gloo-0.6.1 vs lib/gloo/objs/dt/date.rb in gloo-0.7.0

- old
+ new

@@ -34,38 +34,16 @@ # def self.messages return super + %w[now] end - # Get the current working branch. + # + # Set to the current date. + # def msg_now t = DateTime.now.strftime( '%Y.%m.%d' ) self.value = t $engine.heap.it.set_to t - end - - # --------------------------------------------------------------------- - # Help - # --------------------------------------------------------------------- - - # - # Get help for this object type. - # - def self.help - return <<~TEXT - DATE OBJECT TYPE - NAME: date - SHORTCUT: date - - DESCRIPTION - A reference to a date, but without time. - - CHILDREN - None - - MESSAGES - now - Set to the current system date. - TEXT end end end end