Class: Integer
Class Method Summary collapse
Methods inherited from Numeric
#%, #&, #*, #**, #+, #+@, #-, #-@, #/, #<, #<<, #<=, #<=>, #==, #>, #>=, #>>, #^, #abs, #ceil, #chr, #coerce, #conj, #divmod, #downto, #even?, #finite?, #floor, #hash, #infinite?, #integer?, #is_a?, #nan?, #next, #nonzero?, #odd?, #ord, #pred, #send_coerced, #size, #step, #times, #to_f, #to_i, #to_s, #upto, #zero?, #|, #~
Methods included from Comparable
#<, #<=, #==, #>, #>=, #between?, normalize
Class Method Details
.===(other) ⇒ Object
430 431 432 |
# File 'opal/opal/corelib/numeric.rb', line 430 def self.===(other) `!!(other._isNumber && (other % 1) == 0)` end |