Renamed on_begin to on_followed_by

This commit is contained in:
Yorick Peterse committed 2015-08-19 20:14:21 +02:00
1 parent c98ba21a87
commit 92b43a7500
4 files changed
+5 -9

No files matched your search

+1 -5
View File
@@ -16,13 +16,9 @@ module Oga
send(:"on_#{ast.type}", ast)
end
##
# Processes a "begin" node.
#
# @param [Oga::Ruby::Node] ast
# @return [String]
#
def on_begin(ast)
def on_followed_by(ast)
ast.to_a.map { |child| process(child) }.join("\n\n")
end
+1 -1
View File
@@ -146,7 +146,7 @@ module Oga
# @return [Oga::Ruby::Node]
#
def followed_by(other)
Node.new(:begin, [self, other])
Node.new(:followed_by, [self, other])
end
##