bin/print in preval-0.3.0 vs bin/print in preval-0.4.0
- old
+ new
@@ -1,11 +1,9 @@
#!/usr/bin/env ruby
require 'bundler/setup'
require 'preval'
-Preval::Visitors::Arithmetic.enable!
-Preval::Visitors::Loops.enable!
-Preval::Visitors::Micro.enable!
+Preval.enable_all!
source = ARGV.first
puts Preval.process(File.exist?(source) ? File.read(source) : source)