Skip to content

Commit

Permalink
Add block argument to traverse method declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbert committed Jul 2, 2014
1 parent 05344a0 commit 72598a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/traverse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ def self.root_only(tree)
yield tree.data
end

def self.with_preorder(node)
def self.with_preorder(node, &block)
# TODO
end

def self.with_inorder(node)
def self.with_inorder(node, &block)
# TODO
end

def self.with_postorder(node)
def self.with_postorder(node, &block)
# TODO
end

Expand Down

0 comments on commit 72598a1

Please sign in to comment.