Class: Qt::Date
Instance Method Summary collapse
-
#initialize(*args) ⇒ Date
constructor
A new instance of Date.
- #inspect ⇒ Object
- #pretty_print(pp) ⇒ Object
Methods inherited from Base
#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #^, #methods, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~
Constructor Details
#initialize(*args) ⇒ Date
Returns a new instance of Date.
379 380 381 382 383 384 385 |
# File 'lib/qt/qtruby4.rb', line 379 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 |
Instance Method Details
#inspect ⇒ Object
387 388 389 390 |
# File 'lib/qt/qtruby4.rb', line 387 def inspect str = super str.sub(/>$/, " %s>" % toString) end |
#pretty_print(pp) ⇒ Object
392 393 394 395 |
# File 'lib/qt/qtruby4.rb', line 392 def pretty_print(pp) str = to_s pp.text str.sub(/>$/, " %s>" % toString) end |