Class: BW::UIAlertView::ClickedButton
- Inherits:
-
Object
- Object
- BW::UIAlertView::ClickedButton
- Defined in:
- motion/ui/ui_alert_view.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #cancel? ⇒ Boolean
-
#initialize(alert, index) ⇒ ClickedButton
constructor
A new instance of ClickedButton.
Constructor Details
#initialize(alert, index) ⇒ ClickedButton
Returns a new instance of ClickedButton.
114 115 116 117 118 |
# File 'motion/ui/ui_alert_view.rb', line 114 def initialize(alert, index) @index = index @title = alert.(index) @cancel = alert.cancelButtonIndex == index end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
120 121 122 |
# File 'motion/ui/ui_alert_view.rb', line 120 def index @index end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
120 121 122 |
# File 'motion/ui/ui_alert_view.rb', line 120 def title @title end |
Instance Method Details
#cancel? ⇒ Boolean
121 |
# File 'motion/ui/ui_alert_view.rb', line 121 def cancel?; @cancel end |