Sha256: 0af10fddec52827494d9262b806e0cc3bd7e1da044c0ad67e4d57b2e3728e410

Contents?: true

Size: 527 Bytes

Versions: 11

Compression:

Stored size: 527 Bytes

Contents

class PresentScreen < PM::Screen
  attr_accessor :will_present_fired, :on_present_fired, :will_dismiss_fired, :on_dismiss_fired

  def will_present
    self.will_present_fired = true
  end

  def on_present
    self.on_present_fired = true
  end

  def will_dismiss
    self.will_dismiss_fired = true
  end

  def on_dismiss
    self.on_dismiss_fired = true
  end

  def reset
    self.will_present_fired = false
    self.on_present_fired = false
    self.will_dismiss_fired = false
    self.on_dismiss_fired = false
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ProMotion-1.2.1 spec/helpers/present_screen.rb
ProMotion-1.2.0 spec/helpers/present_screen.rb
ProMotion-1.1.2 spec/helpers/present_screen.rb
ProMotion-1.1.1 spec/helpers/present_screen.rb
ProMotion-1.1.0 spec/helpers/present_screen.rb
ProMotion-1.1.0.rc1 spec/helpers/present_screen.rb
ProMotion-1.0.4 spec/helpers/present_screen.rb
ProMotion-1.0.3 spec/helpers/present_screen.rb
ProMotion-1.0.2 spec/helpers/present_screen.rb
ProMotion-1.0.1 spec/helpers/present_screen.rb
ProMotion-1.0.0 spec/helpers/present_screen.rb