class Test::Unit::Assertions::AssertionMessage::NumericInspector
公共类方法
new(numeric, inspected_objects) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2163 def initialize(numeric, inspected_objects) @inspected_objects = inspected_objects @numeric = numeric end
target?(object) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2158 def target?(object) object.is_a?(Numeric) end
公共实例方法
inspect() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2168 def inspect @numeric.to_s end
pretty_print(q) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2172 def pretty_print(q) q.text(@numeric.to_s) end
pretty_print_cycle(q) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2176 def pretty_print_cycle(q) q.text(@numeric.to_s) end