Class: YesNoBox

Inherits:
Object
  • Object
show all
Defined in:
lib/flex_cocoa/yes_no_message_box.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message, cancel  = false)

  l_button = cancel ? 'Cancel' : nil

  @output = CcMessageBox.new(title, subtitle, message, 'No', 'Yes', l_button).output
end

Instance Attribute Details

#outputObject (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