Renamed on_begin to on_followed_by
This commit is contained in:
1 parent
c98ba21a87
commit
92b43a7500
4 files changed
+5
-9
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
##
|
||||
|
||||
Reference in new issue
Block a user