28 Sep '13, 12am

リテラルはnew呼ばない.. hookできない.. / “139543”

> but i was wondering if any other method is called when literal is used? > anything that i can hook up into? I don't think so, even "set_trace_func" says nothing :-( set_trace_func lambda{|e,f,l,i,b,c|printf "%8s %s:%-2d %10s %8s\n", e,f,l,i,c} a = "hi" b = [] c = {} a = String.new "hi" b = Array.new c = Hash.new c-return x.rb:1 set_trace_func Kernel c-call x.rb:7 new Class c-call x.rb:7 initialize String c-return x.rb:7 initialize String c-return x.rb:7 new Class c-call x.rb:8 new Class c-call x.rb:8 initialize Array c-return x.rb:8 initialize Array c-return x.rb:8 new Class c-call x.rb:9 new Class c-call x.rb:9 initialize Hash c-return x.rb:9 initialize Hash c-return x.rb:9 new Class Wolfgang Nádasi-Donner

Full article: https://www.ruby-forum.com/topic/139543

Tweets

Such a hack. Shouldn't exist at all:

apidock.com 27 Sep '13, 2pm

find a declared constant with the name specified in the string. It raises a NameError when the name is not in CamelCase or...

THING: Converse First String “Terry Cons” Pack: Launching at Juice KL and desFIND online store tomorrow is thi...

THING: Converse First String “Terry Cons” Pack:...

streething.com 27 Sep '13, 9am

online store tomorrow is this rather nice looking pack that consists of an Auckland Racer and Pro Leather Low decked out i...