# File lib/mocha/infinite_range.rb, line 15 15: def mocha_inspect 16: if first.respond_to?(:to_f) and first.to_f.infinite? then 17: return "at most #{last}" 18: elsif last.respond_to?(:to_f) and last.to_f.infinite? then 19: return "at least #{first}" 20: else 21: to_s 22: end 23: end