Fix problem and Adapt to hook all method(C/Ruby)

1. Unnecessary variable was deleted.
2. The timing to call the function pre_set_rule was changed.
3. Hook point was changed.
   Consequently, enable to trace all classes and methods(C/Ruby).