Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMoore committed Jun 20, 2024
1 parent 712efda commit ff04e83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/obsidian/parser/tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ def is_index?
end

def find(&block)
walk_tree do |page|
walk do |page|
return page if block.call(page)
end

nil
end

def walk_tree(&block)
def walk(&block)
block.call(self)

children.each do |page|
page.walk_tree(&block)
page.walk(&block)
end
end
end
Expand Down

0 comments on commit ff04e83

Please sign in to comment.