Class: OkMessageBox

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

  if cancel
    @output = CcMessageBox.new(title, subtitle, message, 'Cancel', 'Ok').output
  else
    @output = CcMessageBox.new(title, subtitle, message, 'Ok').output
  end

end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



4
5
6
# File 'lib/flex_cocoa/ok_message_box.rb', line 4

def output
  @output
end