lib/wlang/dialect_dsl.rb in wlang-0.9.1 vs lib/wlang/dialect_dsl.rb in wlang-0.9.2
- old
+ new
@@ -84,9 +84,14 @@
end
@dialect.add_child_dialect(name, child)
end
#
+ # Sets a transformer to use at end of generation time.
+ #
+ def post_transform(transformer = nil, &block) end
+
+ #
# Adds a dialect encoder under _name_. Encoder's code is provided by the block.
# This block should always take <tt>|src, options|</tt> arguments: _src_ is
# the string to encode, _options_ is a Hash instance containing additional
# encoding options.
#
\ No newline at end of file