Sha256: b176163bea7526c4eddf63f96769f75a23d3995bc58306c87754d7f8db949a4c

Contents?: true

Size: 513 Bytes

Versions: 19

Compression:

Stored size: 513 Bytes

Contents

module ProMotion
  module SystemHelper
    module_function

    def ios_version
      UIDevice.currentDevice.systemVersion
    end

    def ios_version_is?(version)
      ios_version == version
    end

    def ios_version_greater?(version)
      ios_version > version
    end

    def ios_version_greater_eq?(version)
      ios_version >= version
    end

    def ios_version_less?(version)
      ios_version < version
    end

    def ios_version_less_eq?(version)
      ios_version <= version
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ProMotion-0.7.8 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.7.6 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.7.5 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.7.4 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.7.3 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.7.2 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.7.1 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.7.0 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.6.5 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.6.4 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.6.3 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.6.2 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.6.1 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.6.0 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.5.2 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.5.0 lib/ProMotion/helpers/system_helper.rb
ProMotion-0.4.1 lib/ProMotion/_helpers/system_helper.rb
ProMotion-0.4.0 lib/ProMotion/_helpers/system_helper.rb
ProMotion-0.3.0 lib/ProMotion/helpers/system_helper.rb