class Test::Unit::AttributeMatcher

公共类方法

new(test) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/attribute-matcher.rb, line 4
def initialize(test)
  @test = test
end

公共实例方法

match?(expression) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/attribute-matcher.rb, line 8
def match?(expression)
  matched = instance_eval(expression)
  if matched.nil?
    false
  else
    matched
  end
end
method_missing(name, *args) 点击切换源代码
调用超类方法
# File test-unit-3.6.7/lib/test/unit/attribute-matcher.rb, line 17
def method_missing(name, *args)
  if args.empty?
    @test[name]
  else
    super
  end
end