examples/word_sample.rb in sequitur-0.1.22 vs examples/word_sample.rb in sequitur-0.1.23
- old
+ new
@@ -18,10 +18,10 @@
# Generate the grammar from the sequence
grammar = Sequitur.build_from(input_sequence)
# Use a formatter to display the grammar rules on the console output
-formatter = Sequitur::Formatter::BaseText.new(STDOUT)
+formatter = Sequitur::Formatter::BaseText.new($stdout)
# Now render the rules
formatter.render(grammar.visitor)
# Rendered output is: