lib/parslet/transform.rb in parslet-1.5.0 vs lib/parslet/transform.rb in parslet-1.6.0
- old
+ new
@@ -114,12 +114,10 @@
class Parslet::Transform
# FIXME: Maybe only part of it? Or maybe only include into constructor
# context?
include Parslet
- autoload :Context, 'parslet/transform/context'
-
class << self
# FIXME: Only do this for subclasses?
include Parslet
# Define a rule for the transform subclass.
@@ -231,6 +229,8 @@
# @api private
#
def recurse_array(ary, ctx)
ary.map { |elt| apply(elt, ctx) }
end
-end
+end
+
+require 'parslet/context'
\ No newline at end of file