class Stub
Public Class Methods
new()
click to toggle source
# File lib/stub.rb, line 2 def initialize @called = Hash.new end
Public Instance Methods
called?(method)
click to toggle source
# File lib/stub.rb, line 10 def called? (method) @called.has_key? method end
method_missing(m)
click to toggle source
# File lib/stub.rb, line 6 def method_missing(m) @called["#{m}"] = "#{m}" end