docs/server.rb in preval-0.3.0 vs docs/server.rb in preval-0.4.0
- old
+ new
@@ -2,12 +2,10 @@
require 'bundler/setup'
require 'preval'
require 'sinatra'
-Preval::Visitors::Arithmetic.enable!
-Preval::Visitors::Loops.enable!
-Preval::Visitors::Micro.enable!
+Preval.enable_all!
get '/' do
send_file(File.expand_path('index.html', __dir__))
end