to_formatted_s(format = :default)
Gives a human readable format of the range.
(1..100).to_formatted_s # => "1..100"
# File activesupport/lib/active_support/core_ext/range/conversions.rb, line 11 def to_formatted_s(format = :default) if formatter = RANGE_FORMATS[format] formatter.call(first, last) else to_default_s end end