class Benry::Recorder::Called
Attributes
args[RW]
; [!m98p9] returns receiver object. ; [!es61g] returns method name. ; [!2yeeo] returns arguments. ; [!yd3hl] returns arguments.
name[RW]
; [!m98p9] returns receiver object. ; [!es61g] returns method name. ; [!2yeeo] returns arguments. ; [!yd3hl] returns arguments.
obj[RW]
; [!m98p9] returns receiver object. ; [!es61g] returns method name. ; [!2yeeo] returns arguments. ; [!yd3hl] returns arguments.
ret[RW]
; [!m98p9] returns receiver object. ; [!es61g] returns method name. ; [!2yeeo] returns arguments. ; [!yd3hl] returns arguments.
Public Class Methods
new(obj, name, args, ret)
click to toggle source
# File lib/benry/recorder.rb, line 76 def initialize(obj, name, args, ret) @obj = obj @name = name @args = args @ret = ret end
Public Instance Methods
inspect()
click to toggle source
# File lib/benry/recorder.rb, line 94 def inspect() #; [!g2iwe] represents internal data. s = args.collect {|arg| arg.inspect }.join(", ") return "#{obj.inspect}.#{name}(#{s}) #=> #{ret.inspect}" end
to_a()
click to toggle source
# File lib/benry/recorder.rb, line 89 def to_a() #; [!hrol9] returns array of obj, nae, args, and ret. return [@obj, @name, @args, @ret] end