From: S. Robert J. [mailto:[email protected]]
I’d like to be able to do:
x = 2.0
assert x.integral?
class Numeric
def integral?
round == self
end
end
From: S. Robert J. [mailto:[email protected]]
I’d like to be able to do:
x = 2.0
assert x.integral?
class Numeric
def integral?
round == self
end
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs