module Polyfill::V2_5::Integer
Public Instance Methods
allbits?(mask)
click to toggle source
# File lib/polyfill/v2_5/integer.rb, line 52 def allbits?(mask) imask = InternalUtils.to_int(mask) self & imask == imask end
anybits?(mask)
click to toggle source
# File lib/polyfill/v2_5/integer.rb, line 57 def anybits?(mask) self & InternalUtils.to_int(mask) != 0 end
ceil(*)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_5/integer.rb, line 36 def ceil(*) super.to_i end
floor(*)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_5/integer.rb, line 40 def floor(*) super.to_i end
nobits?(mask)
click to toggle source
# File lib/polyfill/v2_5/integer.rb, line 61 def nobits?(mask) self & InternalUtils.to_int(mask) == 0 end
round(*)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_5/integer.rb, line 44 def round(*) super.to_i end
truncate(*)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_5/integer.rb, line 48 def truncate(*) super.to_i end