old_doc/triangle.rb in
byebug-1.2.0
vs old_doc/triangle.rb in
byebug-1.3.0
- old
+ new
@@ -5,7 +5,9 @@
tri += i end tri end
-t = triangle(3)
-puts t
+if __FILE__ == $0
+ t = triangle(3)
+ puts t
+end