ri의 ruby Array 문서를 파일로 리디렉션했지만 gedit에서 좋지 않습니다. 그러나 텍스트는 cli에서 잘 보입니다. 터미널 편집기에서 내 파일을 찾는 방법입니다. 여기에는 모든 것이 좋습니다. 텍스트 파일의 Linux cat 및 less 출력이 gedit 및 다른 GNOME 편집기와 다릅니다.
= Array#to_param
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_param()
------------------------------------------------------------------------------
Calls to_param on all its elements and joins the result with slashes. This is
used by url_for in Action Pack.
= Array#to_query
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_query(key)
------------------------------------------------------------------------------
Converts an array into a string suitable for use as a URL query string, using
the given key as the param name.
['Rails', 'coding'].to_query('hobbies') # => "hobbies%5B%5D=Rails&hobbies%5B%5D=coding"
= Array#to_s
(from ruby core)
------------------------------------------------------------------------------
to_s()
------------------------------------------------------------------------------
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_s(format = :default)
------------------------------------------------------------------------------
= Array#to_sentence
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_sentence(options = {})
------------------------------------------------------------------------------
= AArrrraayy##ttoo__ffoorrmmaatttteedd__ss
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_formatted_s(format = :default)
------------------------------------------------------------------------------
Extends Array#to_s to convert a collection of elements into a comma separated
id list if :db argument is given as the format.
Blog.all.to_formatted_s(:db) # => "1,2,3"
Blog.none.to_formatted_s(:db) # => "null"
[1,2].to_formatted_s # => "[1, 2]"
= AArrrraayy##ttoo__ppaarraamm
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_param()
------------------------------------------------------------------------------
Calls to_param on all its elements and joins the result with slashes. This is
used by url_for in Action Pack.
= AArrrraayy##ttoo__qquueerryy
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_query(key)
------------------------------------------------------------------------------
Converts an array into a string suitable for use as a URL query string, using
the given key as the param name.
['Rails', 'coding'].to_query('hobbies') # => "hobbies%5B%5D=Rails&hobbies%5B%5D=coding"
= AArrrraayy##ttoo__ss
(from ruby core)
------------------------------------------------------------------------------
to_s()
------------------------------------------------------------------------------
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_s(format = :default)
------------------------------------------------------------------------------
= AArrrraayy##ttoo__sseenntteennccee
(from gem activesupport-5.1.3)
------------------------------------------------------------------------------
to_sentence(options = {})
------------------------------------------------------------------------------
감사합니다. 그것은 일했다 !!! ri의 man 페이지를 살펴보기 시작했고 -f 옵션을 사용하여 출력 형식을 변경할 수 있음을 발견했습니다. 그래서, ri -f rdoc Array> array.txt도 작동합니다. – Meimo