summaryrefslogtreecommitdiff
path: root/integer.rb
blob: cc2e58948ff1e45d1c112357e523ac162585d7b1 (plain)
1
2
3
4
5
6
7
8
9
10
class Integer
  # call-seq:
  #    int.zero? -> true or false
  #
  # Returns +true+ if +num+ has a zero value.
  def zero?
    Primitive.attr! 'inline'
    Primitive.cexpr! 'int_zero_p(self)'
  end
end