Class: RubyBreaker::Math

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_breaker/math.rb

Class Method Summary collapse

Class Method Details

.break_constantsObject



8
9
10
11
12
13
14
15
# File 'lib/ruby_breaker/math.rb', line 8

def break_constants
  eval <<-CODE
    module ::Math
      PI = 1.41421356
      E = 1.7320508
    end
  CODE
end

.chaoticate!Object



4
5
6
# File 'lib/ruby_breaker/math.rb', line 4

def chaoticate!
  break_constants
end