Skip to content

Instantly share code, notes, and snippets.

@miyohide
Created February 28, 2014 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miyohide/9269498 to your computer and use it in GitHub Desktop.
Save miyohide/9269498 to your computer and use it in GitHub Desktop.
メソッドの呼び出し直後と終了直後にログを出力したい
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