<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://workspace.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Ruby_Tips</id>
	<title>Ruby Tips - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://workspace.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Ruby_Tips"/>
	<link rel="alternate" type="text/html" href="https://workspace.onionmixer.net/wiki/index.php?title=Ruby_Tips&amp;action=history"/>
	<updated>2026-05-16T13:40:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://workspace.onionmixer.net/wiki/index.php?title=Ruby_Tips&amp;diff=547&amp;oldid=prev</id>
		<title>Onionmixer: Ruby관련 팁 페이지 추가</title>
		<link rel="alternate" type="text/html" href="https://workspace.onionmixer.net/wiki/index.php?title=Ruby_Tips&amp;diff=547&amp;oldid=prev"/>
		<updated>2013-05-12T12:09:09Z</updated>

		<summary type="html">&lt;p&gt;Ruby관련 팁 페이지 추가&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;;Ruby관련 팁&lt;br /&gt;
&lt;br /&gt;
==ri 를 통해서 나타나는 정보에 대한 간략한 설명==&lt;br /&gt;
&lt;br /&gt;
아래의 내용은 터미널에서 &amp;#039;&amp;#039;&amp;#039;ri Array&amp;#039;&amp;#039;&amp;#039; 를 했을때 타나나는 내용이다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
----------------------------------------------------------- Class: Array&lt;br /&gt;
     Arrays are ordered, integer-indexed collections of any object.&lt;br /&gt;
     Array indexing starts at 0, as in C or Java. A negative index is&lt;br /&gt;
     assumed to be relative to the end of the array---that is, an index&lt;br /&gt;
     of -1 indicates the last element of the array, -2 is the next to&lt;br /&gt;
     last element in the array, and so on.&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Includes:&lt;br /&gt;
---------&lt;br /&gt;
     Enumerable(all?, any?, collect, count, cycle, detect, drop,&lt;br /&gt;
     drop_while, each_cons, each_slice, each_with_index, entries,&lt;br /&gt;
     enum_cons, enum_slice, enum_with_index, find, find_all, find_index,&lt;br /&gt;
     first, grep, group_by, include?, inject, inject, map, max, max_by,&lt;br /&gt;
     member?, min, min_by, minmax, minmax_by, none?, one?, partition,&lt;br /&gt;
     reduce, reject, reverse_each, select, sort, sort_by, take,&lt;br /&gt;
     take_while, to_a, to_set, zip)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Class methods:&lt;br /&gt;
--------------&lt;br /&gt;
     [], new&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instance methods:&lt;br /&gt;
-----------------&lt;br /&gt;
     &amp;amp;, *, +, -, &amp;lt;&amp;lt;, &amp;lt;=&amp;gt;, ==, [], []=, abbrev, assoc, at, choice, clear,&lt;br /&gt;
     collect, collect!, combination, compact, compact!, concat, count,&lt;br /&gt;
     cycle, dclone, delete, delete_at, delete_if, drop, drop_while,&lt;br /&gt;
     each, each_index, empty?, eql?, fetch, fill, find_index, first,&lt;br /&gt;
     flatten, flatten!, frozen?, hash, include?, index, indexes,&lt;br /&gt;
     indices, initialize_copy, insert, inspect, join, last, length, map,&lt;br /&gt;
     map!, nitems, pack, permutation, pop, pretty_print,&lt;br /&gt;
     pretty_print_cycle, product, push, rassoc, reject, reject!,&lt;br /&gt;
     replace, reverse, reverse!, reverse_each, rindex, select,&lt;br /&gt;
     shelljoin, shift, shuffle, shuffle!, size, slice, slice!, sort,&lt;br /&gt;
     sort!, take, take_while, to_a, to_ary, to_s, to_yaml, transpose,&lt;br /&gt;
     uniq, uniq!, unshift, values_at, yaml_initialize, zip, |&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
위의 도움말은 4가지 part 로 나뉘어져 있다&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===클래스에 대한 설명===&lt;br /&gt;
&lt;br /&gt;
클래스에 대한 설명 부분이다. 위의 도움말은 당연히 Array 클래스에 대한 설명이 표시되어있다&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Includes===&lt;br /&gt;
&lt;br /&gt;
가지고 있는 메서드에 대한 부분이다. 이 경우 상속받은 상위클래스의 메서드들이 표시되어 있으며 Enumerable 클래스의 모든 메서드를 사용할 수 있다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Class methods===&lt;br /&gt;
&lt;br /&gt;
사실 smalltalk 의 System Browser를 보면 더 개념을 명확하게 잡을 수 있는데... 객체에는 객체를 인스턴스 상태로 사용할때 쓸 수 있는 인스턴스 메서드와 클래스 메서드의 2 종류가 있다.&lt;br /&gt;
&lt;br /&gt;
이 경우는 Array 클래스에서 사용할 수 있는 클래스 메서드가 표시된다&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Instance methods===&lt;br /&gt;
&lt;br /&gt;
Array 클래스의 인스턴스 메서드가 표시된다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===정리===&lt;br /&gt;
&lt;br /&gt;
ri 는 ruby 에서 상당히 쓸만한 도구다. 하지만 gentoo 에서 ruby 를 설치했을때 ri를 사용하려면 USE Flag 에 doc 를 사용해야 ri 를 정상적으로 사용할 수 있다.&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
</feed>