[ Content | Sidebar ]

Archives for May, 2007

The Owls Are Not What They Seem

So I recently had gone back and watched the entire series of Twin Peaks. It’s only 2 seasons, so it doesn’t take that long. Really good, I highly recommend it. It was interesting to find out that David Lynch also made Dune and reused large parts of the cast for Twin Peaks. So far I’ve [...]

Debugging Method For Rubyclass Object

class Object def additional_methods if self.instance_of?(Class) self.methods.sort – Class.methods else self.methods.sort – Object.methods end end end #example usage class Foo def self.a end def Foo.b end def c end def d end end {:class=>Foo,:instance=>Foo.new}.each do |name,obj| puts “#{name} additional methods: #{obj.additional_methods.join(‘,’)}” end