lib/physics_plus/optics.rb in physics_plus-0.0.5 vs lib/physics_plus/optics.rb in physics_plus-0.0.6
- old
+ new
@@ -1,7 +1,7 @@
-# This module contains physical constants
+# This module optics
module PhysicsPlus
- # This module contains the solution of problems in optics
+ # This class optics formulas
class Optics
def self.absolute_refractive_index(speed)
raise 'speed must not exceed the speed of light' if Constants::C < speed
raise 'speed must be positive' if speed.negative?