class Qt::Date

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/Qt/qtruby4.rb, line 667
def initialize(*args)
  if args.size == 1 && args[0].class.name == "Date"
    return super(args[0].year, args[0].month, args[0].day)
  else
    return super(*args)
  end
end

Public Instance Methods

inspect() click to toggle source
Calls superclass method
# File lib/Qt/qtruby4.rb, line 675
def inspect
  str = super
  str.sub(/>$/, " %s>" % toString)
end
pretty_print(pp) click to toggle source
# File lib/Qt/qtruby4.rb, line 680
def pretty_print(pp)
  str = to_s
  pp.text str.sub(/>$/, " %s>" % toString)
end
to_date() click to toggle source
# File lib/Qt/qtruby4.rb, line 685
def to_date
  ::Date.new! to_julian_day
end