File: backports.rb

package info (click to toggle)
ruby-diff-lcs 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 648 kB
  • sloc: ruby: 3,030; makefile: 10
file content (13 lines) | stat: -rw-r--r-- 211 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

unless 0.respond_to?(:positive?)
  class Fixnum # standard:disable Lint/UnifiedInteger
    def positive?
      self > 0
    end

    def negative?
      self < 0
    end
  end
end