Class: OkMessageBox
- Inherits:
-
Object
- Object
- OkMessageBox
- Defined in:
- lib/flex_cocoa/ok_message_box.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(title, subtitle, message, cancel = false) ⇒ OkMessageBox
constructor
A new instance of OkMessageBox.
Constructor Details
#initialize(title, subtitle, message, cancel = false) ⇒ OkMessageBox
Returns a new instance of OkMessageBox.
6 7 8 9 10 11 12 13 14 |
# File 'lib/flex_cocoa/ok_message_box.rb', line 6 def initialize (title, subtitle, , cancel = false) if cancel @output = CcMessageBox.new(title, subtitle, , 'Cancel', 'Ok').output else @output = CcMessageBox.new(title, subtitle, , 'Ok').output end end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
4 5 6 |
# File 'lib/flex_cocoa/ok_message_box.rb', line 4 def output @output end |