In Files

  • test-unit-3.3.4/lib/test/unit/assertions.rb

Class/Module Index [+]

Quicksearch

Test::Unit::Assertions::AssertionMessage::NumericInspector

Public Class Methods

new(numeric, inspected_objects) click to toggle source
 
               # File test-unit-3.3.4/lib/test/unit/assertions.rb, line 1885
def initialize(numeric, inspected_objects)
  @inspected_objects = inspected_objects
  @numeric = numeric
end
            
target?(object) click to toggle source
 
               # File test-unit-3.3.4/lib/test/unit/assertions.rb, line 1880
def target?(object)
  object.is_a?(Numeric)
end
            

Public Instance Methods

inspect() click to toggle source
 
               # File test-unit-3.3.4/lib/test/unit/assertions.rb, line 1890
def inspect
  @numeric.to_s
end
            
pretty_print(q) click to toggle source
 
               # File test-unit-3.3.4/lib/test/unit/assertions.rb, line 1894
def pretty_print(q)
  q.text(@numeric.to_s)
end
            
pretty_print_cycle(q) click to toggle source
 
               # File test-unit-3.3.4/lib/test/unit/assertions.rb, line 1898
def pretty_print_cycle(q)
  q.text(@numeric.to_s)
end