Skip to content

Commit

Permalink
remove 'method redefined' message
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshCheek committed Jan 10, 2011
1 parent 68aec51 commit da347b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch3/notes/notes.rb
Expand Up @@ -149,7 +149,7 @@ def as_method


# When inside of a method, you can check to see if a block was passed to it by using block_given?
def block_checker # !> method redefined; discarding old block_checker
def block_checker
block_given?
end
block_checker # => false
Expand Down

0 comments on commit da347b9

Please sign in to comment.