From: Josh Cheek Date: 2010-11-24T05:06:37+09:00 Subject: Re: Math object in Ruby --0016364273addd9e540495bde8fc Content-Type: text/plain; charset=ISO-8859-1 On Tue, Nov 23, 2010 at 1:09 PM, Charles Agriesti wrote: > In IRB, or saved as a program from Scite, put in something like: > > puts(MATH::PI) > > response is always " Uninitialized constant MATH(NameError) > > How can I tell if I have the MATH module in my installation? If I don't > have it, how do I fix that? Thanks in advance. > > -- > Posted via http://www.ruby-forum.com/. > > You could do something like this. Object.constants.grep(/math/i) # => [:Math] --0016364273addd9e540495bde8fc--