class Qt::Time

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/Qt/qtruby4.rb, line 2110
def initialize(*args)
  if args.size == 1 && args[0].class.name == "Time"
    return super(args[0].hour, args[0].min, args[0].sec)
  else
    return super(*args)
  end
end

Public Instance Methods

inspect() click to toggle source
Calls superclass method
# File lib/Qt/qtruby4.rb, line 2118
def inspect
  str = super
  str.sub(/>$/, " %s>" % toString)
end
pretty_print(pp) click to toggle source
# File lib/Qt/qtruby4.rb, line 2123
def pretty_print(pp)
  str = to_s
  pp.text str.sub(/>$/, " %s>" % toString)
end