Class: Zerenity::Calendar
Overview
:nodoc:
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.build(dialog, options) ⇒ Object
15 16 17 18 19 |
# File 'lib/zerenity/calendar.rb', line 15 def self.build(dialog,) super(dialog,) dialog.vbox.add(Gtk::Label.new([:text],false)) dialog.vbox.add(Gtk::Calendar.new) end |
.retrieve_selection(dialog, options) ⇒ Object
21 22 23 24 |
# File 'lib/zerenity/calendar.rb', line 21 def self.retrieve_selection(dialog,) super(dialog,) Time.local(*dialog.vbox.children[1].date) end |