Sha256: 70fa1ae4b72c848c772a28f8322c70959258c50df1bcb0568faae6f4e6beea39

Contents?: true

Size: 575 Bytes

Versions: 54

Compression:

Stored size: 575 Bytes

Contents

class UITouch

  def to_s
    phase = case self.phase
            when UITouchPhaseBegan
              'began'
            when UITouchPhaseMoved
              'moved'
            when UITouchPhaseStationary
              'stationary'
            when UITouchPhaseEnded
              'ended'
            when UITouchPhaseCancelled
              'cancelled'
            end
    "#{self.class.to_s}(#{self.tapCount} #{self.tapCount == 1 ? 'tap' : 'taps'}, phase: #{phase}, "\
                      "at #{self.locationInView(self.view).inspect}, @ #{self.timestamp})"
  end

end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
sugarcube-3.0.4 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-3.0.3 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-3.0.2 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-3.0.1 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-3.0.0 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.12.3 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.12.2 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.12.1 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.12.0 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.11.1 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.11.0 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.10.0 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.9.1 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.8.2 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.8.1 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.8.0 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.7.1 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.7.0 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.6.0 lib/ios/sugarcube-to_s/uitouch.rb
sugarcube-2.5.0 lib/ios/sugarcube-to_s/uitouch.rb