Class: YesNoBox
- Inherits:
-
Object
- Object
- YesNoBox
- Defined in:
- lib/flex_cocoa/yes_no_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) ⇒ YesNoBox
constructor
A new instance of YesNoBox.
Constructor Details
#initialize(title, subtitle, message, cancel = false) ⇒ YesNoBox
Returns a new instance of YesNoBox.
6 7 8 9 10 11 |
# File 'lib/flex_cocoa/yes_no_message_box.rb', line 6 def initialize (title, subtitle, , cancel = false) = cancel ? 'Cancel' : nil @output = CcMessageBox.new(title, subtitle, , 'No', 'Yes', ).output end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
4 5 6 |
# File 'lib/flex_cocoa/yes_no_message_box.rb', line 4 def output @output end |