lib/unparser/emitter.rb in unparser-0.3.0 vs lib/unparser/emitter.rb in unparser-0.4.0

- old
+ new

@@ -15,14 +15,10 @@ # Registry for node emitters REGISTRY = {} # rubocop:disable MutableConstant NOINDENT = %i[rescue ensure].to_set.freeze - DEFAULT_DELIMITER = ', '.freeze - - CURLY_BRACKETS = IceNine.deep_freeze(%w[{ }]) - module Unterminated def terminated? false end end @@ -108,19 +104,9 @@ comments.consume(node) emit_eof_comments if parent.is_a?(Root) self end memoize :write_to_buffer - - # Emit node - # - # @return [self] - # - # @api private - # - def self.emit(*arguments) - new(*arguments).write_to_buffer - end # Return emitter # # @return [Emitter] #