Created
February 28, 2014 11:28
-
-
Save miyohide/9269498 to your computer and use it in GitHub Desktop.
メソッドの呼び出し直後と終了直後にログを出力したい
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hello | |
def say_hello | |
puts "hello" | |
end | |
end | |
## Hello.new.say_helloとしたら、下のような出力をしたい | |
## | |
## Method say_hello start | |
## hello | |
## Method say_hello end | |
Hello.new.say_hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment