Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 03:26:10 < elliottcable> Hey y'all
- 03:26:13 -!- ia [n=ia@89.169.165.188] has quit [Client Quit]
- 03:26:25 < elliottcable> Trying to work on some code to manipulate methods; in the process, I need to deal with method_added.
- 03:27:25 < elliottcable> The problem is depending on whether the method is an instance or a singleton method, I have to use either the singleton method
- :method_added, or the singleton method :singleton_method_added
- 03:27:31 -!- ia [n=ia@89.169.165.188] has joined #ruby
- 03:27:47 < elliottcable> my problem is I can't tell if currently we're working on a singleton or instance method
- 03:28:14 -!- TopoMorto [n=TopoMort@151.61.155.128] has quit [Remote closed the connection]
- 03:28:16 < elliottcable> is there some way to tell whether the current context is a normal class or a singleton class?
Add Comment
Please, Sign In to add comment