Ich leitete ri's Ruby Array Doc in eine Datei, aber es sah nicht gut in gedit. Aber Text sieht in cli gut aus. So sieht meine Datei in Terminal-Editoren aus. Alles ist gut hier.Linux Katze und weniger Ausgabe für meine Textdatei ist anders als gedit und andere Gnome-Editor
= 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 = {})
------------------------------------------------------------------------------
Aber wenn ich es in gedit oder anderen gnome-Editoren öffnen, das ist, wie es aussieht. Einige spezifische Wörter sehen in absurdem Format aus. Irgendwelche Vorschläge oder Hilfe werden geschätzt.
= 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 = {})
------------------------------------------------------------------------------
Vielen Dank für Ihre Antwort. Es funktionierte!!! Ich habe auch angefangen, in ris Manpage zu schauen und festgestellt, dass man das Ausgabeformat mit der Option -f ändern kann. Also, ri -f rdoc Array> array.txt funktioniert auch. – Meimo