⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 5.2.htm

📁 RUBY的参考手册~~ RUBY的参考手册~~RUBY的参考手册
💻 HTM
📖 第 1 页 / 共 4 页
字号:
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?mode=findbook&amp;view=author">Author</A></TD></TR>
              <TR>
                <TD class=v2 height=18>&#8226; <A class=v2 
                  title="Search for a book by ISBN number" 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?mode=findbook&amp;view=isbn">ISBN</A></TD></TR>
              <TR>
                <TD class=v2 height=18>&#8226; <A class=v2 
                  title="Search for a book with a particular title" 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?mode=findbook&amp;view=booktitle">Title</A></TD></TR>
              <TR>
                <TD class=v2 height=18>&#8226; <A class=v2 
                  title="Search for all books by a particular publisher" 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?mode=findbook&amp;view=publ">Publisher</A></TD></TR>
              <TR>
                <TD class=v1 height=5></TD></TR></TBODY></TABLE></TD>
          <TD align=right width=1 rowSpan=3><IMG height=1 
            src="5.2.files/spacer.gif" width=1 border=0></TD></TR>
        <TR>
          <TD class=v1 align=middle width=188 height=1><IMG height=1 
            src="5.2.files/spacer.gif" width=1 
      border=0></TD></TR></TBODY></TABLE></DIV></FORM></TD>
    <TD align=middle>
      <TABLE width="95%">
        <TBODY>
        <TR>
          <TD class=v2 align=middle>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD height=15>&nbsp;</TD></TR>
              <TR>
                <TD class=v2 vAlign=top><A 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=print&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9/ruby-CHP-5-SECT-2&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1" 
                  target=_new><IMG height=12 src="5.2.files/img_print.gif" 
                  width=14 align=textTop border=0></A> &nbsp;<A class=v2 
                  title="Printer-friendly version of this section" 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=print&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9/ruby-CHP-5-SECT-2&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1" 
                  target=_new>Print</A> &nbsp;<A 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=email&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9/ruby-CHP-5-SECT-2&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1"><IMG 
                  height=9 hspace=3 src="5.2.files/img_email.gif" width=15 
                  align=absMiddle border=0></A> &nbsp;<A class=v2 
                  title="E-Mail this section" 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=email&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9/ruby-CHP-5-SECT-2&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1">E-Mail</A> 
                  &nbsp;<A 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=bookmark&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9/ruby-CHP-5-SECT-2&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1"><IMG 
                  height=14 hspace=3 src="5.2.files/img_bookmarks.gif" width=6 
                  align=absMiddle border=0></A> &nbsp;<A class=v2 
                  title="Add a bookmark about this section" 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=bookmark&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9/ruby-CHP-5-SECT-2&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1">Add 
                  Bookmark</A></TD>
                <TD class=v2 vAlign=top align=right>&nbsp; <A 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=section&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9/ruby-CHP-5-SECT-1&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1"><IMG 
                  height=16 src="5.2.files/btn_prev.gif" width=56 
                  align=absMiddle border=0></A> &nbsp; <A 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=section&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9/ruby-CHP-5-SECT-3&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1"><IMG 
                  height=16 src="5.2.files/btn_next.gif" width=41 
                  align=absMiddle border=0></A></TD></TR></TBODY></TABLE>
            <HR SIZE=1>

            <TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top width=67 rowSpan=3><IMG 
                  src="5.2.files/ruby_xs.gif" width=67 border=0></TD>
                <TD class=v2 vAlign=top><A class=v1 
                  href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&amp;mode=section&amp;sortKey=title&amp;sortOrder=asc&amp;view=&amp;xmlid=0-59600-214-9&amp;open=false&amp;catid=&amp;s=1&amp;b=1&amp;f=1&amp;t=0&amp;c=1&amp;u=1&amp;srchText=">Ruby 
                  in a Nutshell</A><BR>By Yukihiro&nbsp;Matsumoto<BR></TD></TR>
              <TR>
                <TD class=v2>&nbsp; </TD></TR>
              <TR>
                <TD class=t1 vAlign=bottom>Chapter 5.&nbsp; Ruby 
              Tools</TD></TR></TBODY></TABLE>
            <HR SIZE=1>
            <BR>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top><A name=ruby-CHP-5-SECT-2></A>
                  <H3 class=docSection1Title>5.2 Additional Tools</H3>
                  <P class=docText>There are other useful tools that don't come 
                  bundled with the Ruby standard distribution. However, you do 
                  need to install them yourself. </P><A 
                  name=ruby-CHP-5-SECT-2.1></A>
                  <H4 class=docSection2Title>5.2.1 ri: Ruby Interactive 
                  Reference</H4>
                  <P class=docText><TT>ri</TT><A name=IXT-5-128941></A><A 
                  name=IXT-5-128942></A><A name=IXT-5-128943></A> is a online 
                  reference tool developed by Dave Thomas, the famous pragmatic 
                  programmer. When you have a question about the behavior of a 
                  certain method, e.g., <TT>IO#gets</TT>, you can invoke 
                  <TT>ri</TT> <TT>IO#gets</TT> to read the brief explanation of 
                  the method. You can get <TT>ri</TT> from <A class=docLink 
                  href="http://www.pragmaticprogrammer.com/ruby/downloads/ri.html" 
                  target=_blank>http://www.pragmaticprogrammer.com/ruby/downloads/ri.html</A>. 
                  </P><PRE>ri [ options ] [ name... ]</PRE>
                  <P class=docText>Here are the <TT>ri</TT> options: </P><A 
                  name=IXT-5-128944></A><A name=IXT-5-128945></A><A 
                  name=IXT-5-128946></A><A name=IXT-5-128947></A><A 
                  name=IXT-5-128948></A><A name=IXT-5-128949></A><A 
                  name=IXT-5-128950></A><A name=IXT-5-128951></A>
                  <DL class=docList><A name=IXT-5-128944></A>
                    <DT><SPAN class=docPubcolor><SPAN class=docPubcolor><SPAN 
                    class=docMonofont>--version,</SPAN></SPAN></SPAN> 
                    <DD>
                    <P class=docList></P><A name=IXT-5-128945></A>
                    <DT><SPAN class=docPubcolor><SPAN class=docPubcolor><SPAN 
                    class=docMonofont>-v</SPAN></SPAN> </SPAN>
                    <DD>
                    <P class=docList>Displays version and exits.</P><A 
                    name=IXT-5-128946></A>
                    <DT><SPAN class=docPubcolor><SPAN class=docPubcolor><SPAN 
                    class=docMonofont>--line-length=n</SPAN></SPAN></SPAN> 
                    <DD>
                    <P class=docList></P><A name=IXT-5-128947></A>
                    <DT><SPAN class=docPubcolor><SPAN class=docPubcolor><SPAN 
                    class=docMonofont>-l n</SPAN></SPAN></SPAN> 
                    <DD>
                    <P class=docList>Sets the line length for the output 
                    (minimum is 30 characters).</P><A name=IXT-5-128948></A>
                    <DT><SPAN class=docPubcolor><SPAN class=docPubcolor><SPAN 
                    class=docMonofont>--synopsis</SPAN></SPAN></SPAN> 
                    <DD>
                    <P class=docList></P><A name=IXT-5-128949></A>
                    <DT><SPAN class=docPubcolor><SPAN class=docPubcolor><SPAN 
                    class=docMonofont>-s</SPAN></SPAN></SPAN> 
                    <DD>
                    <P class=docList>Displays just a synopsis.</P><A 
                    name=IXT-5-128950></A>
                    <DT><SPAN class=docPubcolor><SPAN class=docPubcolor><SPAN 
                    class=docMonofont>--format=</SPAN></SPAN> 
                    <TT><I>name</I></TT></SPAN> 
                    <DD>
                    <P class=docList></P><A name=IXT-5-128951></A>
                    <DT><SPAN class=docPubcolor><SPAN class=docPubcolor><SPAN 
                    class=docMonofont>-f</SPAN></SPAN> 
                    <TT><I>name</I></TT></SPAN> 
                    <DD>
                    <P class=docList>Uses the <TT><I>name</I></TT> module 
                    (default is <TT>Plain</TT>) for output formatting. Here are 
                    the available modules: </P>
                    <DL class=docList>
                      <DT><I><SPAN class=docPubcolor>Tagged</SPAN></I> 
                      <DD>
                      <P class=docList>Simple tagged output</P>
                      <DT><I><SPAN class=docPubcolor>Plain</SPAN></I> 
                      <DD>
                      <P class=docList>Default plain output</P></DD></DL>
                    <P class=docList><TT><I>name</I></TT> should be specified in 
                    any of the following forms: </P>
                    <UL>
                      <LI>
                      <P class=docList><TT><I>Class</I></TT></P>
                      <LI>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -