Guest User

Untitled

a guest
Feb 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. 03:26:10 < elliottcable> Hey y'all
  2. 03:26:13 -!- ia [n=ia@89.169.165.188] has quit [Client Quit]
  3. 03:26:25 < elliottcable> Trying to work on some code to manipulate methods; in the process, I need to deal with method_added.
  4. 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
  5. :method_added, or the singleton method :singleton_method_added
  6. 03:27:31 -!- ia [n=ia@89.169.165.188] has joined #ruby
  7. 03:27:47 < elliottcable> my problem is I can't tell if currently we're working on a singleton or instance method
  8. 03:28:14 -!- TopoMorto [n=TopoMort@151.61.155.128] has quit [Remote closed the connection]
  9. 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