Mega Code Archive

 
Categories / Ruby / Development
 

Math const_set and get

Math.const_set(:EPI, Math::E*Math::PI) Math.const_get(:EPI)             # => 8.53973422267357 Math.const_defined? :EPI         # => true