3 class DelegatedMethod < RuntimePrimitive
8 self.instance_fields = 7
10 def name= n; @name = n end
13 def self.build(sym, receiver, pass_self)
15 obj.name = "<delegated to: #{receiver.to_s}>"
16 obj.put RuntimePrimitive::PrimitiveIndex, :dispatch_as_method
17 obj.put RuntimePrimitive::RequiredArguments, -1
18 obj.put RuntimePrimitive::SerialNumber, 0
19 obj.put RuntimePrimitive::ByteCodes, sym
20 obj.put Receiver, receiver
21 obj.put UseSelf, pass_self # If true, first argument will be 'self'