Class: Gtk::Calendar

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk3/calendar.rb,
lib/gtk3/deprecated.rb

Instance Method Summary collapse

Instance Method Details

#dateObject



25
26
27
28
# File 'lib/gtk3/calendar.rb', line 25

def date
  year, month, day = date_raw
  [year, month + 1, day]
end

#date_rawObject



24
# File 'lib/gtk3/calendar.rb', line 24

alias_method :date_raw, :date

#select_month(month, year) ⇒ Object



20
21
22
# File 'lib/gtk3/calendar.rb', line 20

def select_month(month, year)
  select_month_raw(month - 1, year)
end

#select_month_rawObject



19
# File 'lib/gtk3/calendar.rb', line 19

alias_method :select_month_raw, :select_month