class Motion::Action
Attributes
action[RW]
style[RW]
title[RW]
Public Class Methods
new(options = {})
click to toggle source
# File lib/project/motion_action.rb, line 5 def initialize(options = {}) self.title = options.fetch(:title, nil) self.action = options.fetch(:action, nil) self.style = options.fetch(:style, nil) || UIAlertActionStyleDefault end
Public Instance Methods
choose()
click to toggle source
# File lib/project/motion_action.rb, line 11 def choose if action != nil action.call end end