Class: Shoes::App::Ask
- Inherits:
-
Qt::Dialog
- Object
- Qt::Dialog
- Shoes::App::Ask
- Defined in:
- lib/blue_shoes/app.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(message, parent = nil) ⇒ Ask
constructor
A new instance of Ask.
Constructor Details
#initialize(message, parent = nil) ⇒ Ask
Returns a new instance of Ask.
103 104 105 106 107 108 109 110 111 112 |
# File 'lib/blue_shoes/app.rb', line 103 def initialize(, parent = nil) super(parent) ok = Qt::Boolean.new self.text = Qt::InputDialog.getText(self, "I have a Question?", , Qt::LineEdit::Normal, Qt::Dir::home().dirName(), ok) end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
101 102 103 |
# File 'lib/blue_shoes/app.rb', line 101 def text @text end |