?? 5.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0171)http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=0-59600-214-9/ruby-CHP-5&open=false&catid=&s=1&b=1&f=1&t=0&c=1&u=1 -->
<HTML><HEAD><TITLE>Safari Tech Books Online - Ruby in a Nutshell</TITLE>
<META http-equiv=Content-Type content="text/html; charset=big5"><LINK
href="5.files/style.css" type=text/css rel=STYLESHEET><LINK
href="5.files/docsafari.css" type=text/css rel=STYLESHEET>
<SCRIPT>
function OpenWin(url, w, h)
{
if(!w) w = 400;
if(!h) h = 300;
window.open(url, "_new", "width=" + w + ",height=" + h + ",menubar=no,toobar=no,scrollbars=yes", true);
}
</SCRIPT>
<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"><A
name=toppage></A><SPAN class=v2></SPAN>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR vAlign=top>
<TD align=left bgColor=black><IMG src="5.files/SafariLogo.gif"
align=middle borner="0"></TD>
<TD align=right bgColor=black><IMG src="5.files/pqlogo.gif"
align=right></TD></TR>
<TR vAlign=center align=right height=30>
<TD bgColor=#ff9900></TD>
<TD class=PQBannerText vAlign=center align=left bgColor=#993300><IMG
src="5.files/jslredcurve.jpg" align=absMiddle><B>ProQuest Information and
Learning Company </B></TD></TR></TBODY></TABLE>
<TABLE class=topmenu height=20 cellSpacing=1 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD width=150></TD>
<TD class=navbtn noWrap align=middle width=65><A class=navbtn
title="Go to home page"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=Home&sortKey=title&sortOrder=asc&view=&xmlid=&open=false&catid=&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Home</A></TD>
<TD class=navbtn noWrap align=middle width=70><A class=navbtn
title="Go to My Safari"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=MySafari&sortKey=title&sortOrder=asc&view=&xmlid=&open=false&catid=&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Desktop</A></TD>
<TD class=navbtn noWrap align=middle width=90><A class=navbtn
title="Show the books on your bookshelf"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=MyBookshelf&sortKey=title&sortOrder=asc&view=&xmlid=&open=false&catid=&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Bookshelf</A></TD>
<TD class=navbtn noWrap align=middle width=125><A class=navbtn
title="Display a list of recent searches"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=MyRecentSearches&sortKey=title&sortOrder=asc&view=&xmlid=&open=false&catid=&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Recent
Searches</A></TD>
<TD class=navbtn noWrap align=middle width=110><A class=navbtn
title="Display a list of recently visited pages"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=MyRecentPages&sortKey=title&sortOrder=asc&view=&xmlid=&open=false&catid=&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Recent
Pages</A></TD>
<TD class=logout noWrap align=right> <A class=v2
href="http://proquest.safaribooksonline.com/JVXSL.asp?mode=Logout">Logout</A>
</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR vAlign=top>
<TD width=190 rowSpan=2>
<FORM action=JVXSL.asp method=post><INPUT type=hidden name=catid><INPUT
type=hidden value=1 name=s><INPUT type=hidden value=1 name=b><INPUT
type=hidden value=0 name=t><INPUT type=hidden value=1 name=f><INPUT
type=hidden value=1 name=c><INPUT type=hidden value=1 name=l>
<DIV style="OVERFLOW-X: hidden; WIDTH: 190px">
<TABLE class=menuLeft cellSpacing=0 cellPadding=0 width=190 border=0>
<TBODY>
<TR>
<TD align=right width=1 rowSpan=3><IMG height=1
src="5.files/spacer.gif" width=1 border=0></TD>
<TD class=menuLeft align=middle width=188><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=0-59600-214-9/ruby-CHP-5&open=false&catid=&s=0&b=1&f=1&t=0&c=1&u=1"><IMG
src="5.files/left_search.gif" border=0></A>
<TABLE id=Out1details cellSpacing=0 cellPadding=0 width="92%"
border=0>
<TBODY>
<TR>
<TD colSpan=4 height=5></TD></TR>
<TR>
<TD colSpan=4 height=5></TD></TR>
<TR>
<TD colSpan=4><INPUT type=hidden value=book name=view><INPUT
tabIndex=1 size=15 name=srchtext><SPAN class=v2> <INPUT title="Execute the search" type=submit value=Go name=go></SPAN></TD></TR>
<TR>
<TD class=a2 vAlign=center colSpan=4 height=25><INPUT
type=checkbox value=1 name=code> Code Fragments Only</TD></TR>
<TR vAlign=top>
<TD class=v2 colSpan=4 height=25> <A class=a1
title="Advanced search features"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=search&sortKey=title&sortOrder=asc&view=&xmlid=&open=false&catid=&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Advanced
Search</A></TD></TR></TBODY></TABLE><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=0-59600-214-9/ruby-CHP-5&open=false&catid=&s=1&b=1&f=1&t=1&c=1&u=1"><IMG
height=19 src="5.files/left_tbl_conts_closed.gif" width=188
border=0></A><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=0-59600-214-9/ruby-CHP-5&open=false&catid=&s=1&b=0&f=1&t=0&c=1&u=1"><IMG
src="5.files/left_browse.gif" border=0></A><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=v1 colSpan=16 height=5></TD></TR>
<TR>
<TD class=v2 vAlign=top align=left colSpan=16
height=20> <A class=v1
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=books&sortKey=title&sortOrder=asc&view=&xmlid=&open=false&catid=&s=1&b=1&f=1&t=0&c=1&u=1&srchText=BOOK&title=">View
All Titles</A> </TD></TR>
<TR vAlign=top>
<TD class=v2> </TD>
<TD class=v2 vAlign=center align=left width=14 height=18><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=appsci&s=1&b=1&f=1&t=0&c=1&u=1&srchText="><IMG
height=9 src="5.files/sign_plus.gif" width=14 vspace=2
border=0></A></TD>
<TD class=v2 vAlign=top align=left width="100%" colSpan=14
height=18><A class=v2 title="Applied Sciences"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=books&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=appsci&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Applied
Sciences</A></TD></TR>
<TR vAlign=top>
<TD class=v2> </TD>
<TD class=v2 vAlign=center align=left width=14 height=18><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=artint&s=1&b=1&f=1&t=0&c=1&u=1&srchText="><IMG
height=9 src="5.files/sign_plus.gif" width=14 vspace=2
border=0></A></TD>
<TD class=v2 vAlign=top align=left width="100%" colSpan=14
height=18><A class=v2 title="Artificial Intelligence"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=books&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=artint&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Artificial
Intelligence</A></TD></TR>
<TR vAlign=top>
<TD class=v2> </TD>
<TD class=v2 vAlign=center align=left width=14 height=18><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=bus&s=1&b=1&f=1&t=0&c=1&u=1&srchText="><IMG
height=9 src="5.files/sign_plus.gif" width=14 vspace=2
border=0></A></TD>
<TD class=v2 vAlign=top align=left width="100%" colSpan=14
height=18><A class=v2 title=Business
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=books&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=bus&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Business</A></TD></TR>
<TR vAlign=top>
<TD class=v2> </TD>
<TD class=v2 vAlign=center align=left width=14 height=18><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=cert&s=1&b=1&f=1&t=0&c=1&u=1&srchText="><IMG
height=9 src="5.files/sign_plus.gif" width=14 vspace=2
border=0></A></TD>
<TD class=v2 vAlign=top align=left width="100%" colSpan=14
height=18><A class=v2 title=Certification
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=books&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=cert&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Certification</A></TD></TR>
<TR vAlign=top>
<TD class=v2> </TD>
<TD class=v2 vAlign=center align=left width=14 height=18><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=dbase&s=1&b=1&f=1&t=0&c=1&u=1&srchText="><IMG
height=9 src="5.files/sign_plus.gif" width=14 vspace=2
border=0></A></TD>
<TD class=v2 vAlign=top align=left width="100%" colSpan=14
height=18><A class=v2 title=Databases
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=books&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=dbase&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Databases</A></TD></TR>
<TR vAlign=top>
<TD class=v2> </TD>
<TD class=v2 vAlign=center align=left width=14 height=18><A
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=section&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=dskapps&s=1&b=1&f=1&t=0&c=1&u=1&srchText="><IMG
height=9 src="5.files/sign_plus.gif" width=14 vspace=2
border=0></A></TD>
<TD class=v2 vAlign=top align=left width="100%" colSpan=14
height=18><A class=v2 title="Desktop Applications"
href="http://proquest.safaribooksonline.com/JVXSL.asp?x=1&mode=books&sortKey=title&sortOrder=asc&view=&xmlid=&open=true&catid=dskapps&s=1&b=1&f=1&t=0&c=1&u=1&srchText=">Desktop
Applications</A></TD></TR>
<TR vAlign=top>
<TD class=v2> </TD>
<TD class=v2 vAlign=center align=left width=14 height=18><A
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -