class Test::Unit::AttributeMatcher

Public Class Methods

new(test) click to toggle source
# File test-unit-3.6.1/lib/test/unit/attribute-matcher.rb, line 4
def initialize(test)
  @test = test
end

Public Instance Methods

match?(expression) click to toggle source
# File test-unit-3.6.1/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) click to toggle source
Calls superclass method
# File test-unit-3.6.1/lib/test/unit/attribute-matcher.rb, line 17
def method_missing(name, *args)
  if args.empty?
    @test[name]
  else
    super
  end
end