Fix a RuboCop offence Style/MethodDefParentheses (#32530).

git-svn-id: http://svn.redmine.org/redmine/trunk@20152 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-10-20 14:44:12 +00:00
parent b59af050cb
commit 84a4a4f8ed
2 changed files with 1 additions and 8 deletions

View File

@@ -359,7 +359,7 @@ module Redmine
@children.inject(1) {|sum, node| sum + node.size}
end
def each &block
def each(&block)
yield self
children { |child| child.each(&block) }
end