lib/tilt/template.rb in tilt-1.3.6 vs lib/tilt/template.rb in tilt-1.3.7
- old
+ new
@@ -1,6 +1,6 @@
module Tilt
- TOPOBJECT = defined?(BasicObject) ? BasicObject : Object
+ TOPOBJECT = Object.superclass || Object
# Base class for template implementations. Subclasses must implement
# the #prepare method and one of the #evaluate or #precompiled_template
# methods.
class Template