folio 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. data/CHANGES +12 -0
  2. data/MANIFEST +13 -227
  3. data/NEWS +8 -6
  4. data/TODO +8 -0
  5. data/VERSION +1 -0
  6. data/doc/book/basedir-spec-0.6.html +138 -0
  7. data/lib/folio.rb +16 -5
  8. data/lib/folio/directory.rb +8 -3
  9. data/lib/folio/document.rb +4 -0
  10. data/lib/folio/errors.rb +3 -0
  11. data/lib/folio/fileobject.rb +19 -10
  12. data/lib/folio/link.rb +10 -4
  13. data/lib/folio/pipe.rb +4 -0
  14. data/lib/folio/{prompt.rb → shell.rb} +92 -21
  15. data/lib/folio/xdg.rb +136 -0
  16. data/meta/abstract +1 -0
  17. data/meta/authors +1 -0
  18. data/meta/contact +1 -0
  19. data/meta/homepage +1 -0
  20. data/meta/releases +2 -0
  21. data/meta/summary +1 -0
  22. metadata +26 -239
  23. data/METADATA +0 -9
  24. data/doc/rdoc/classes/Enumerator.html +0 -92
  25. data/doc/rdoc/classes/Folio.html +0 -158
  26. data/doc/rdoc/classes/Folio/BlockDevice.html +0 -117
  27. data/doc/rdoc/classes/Folio/CharacterDevice.html +0 -117
  28. data/doc/rdoc/classes/Folio/Device.html +0 -119
  29. data/doc/rdoc/classes/Folio/Directory.html +0 -548
  30. data/doc/rdoc/classes/Folio/Document.html +0 -340
  31. data/doc/rdoc/classes/Folio/FileNotFound.html +0 -92
  32. data/doc/rdoc/classes/Folio/FileObject.html +0 -1205
  33. data/doc/rdoc/classes/Folio/Link.html +0 -238
  34. data/doc/rdoc/classes/Folio/Pipe.html +0 -131
  35. data/doc/rdoc/classes/Folio/Prompt.html +0 -839
  36. data/doc/rdoc/classes/Folio/Socket.html +0 -115
  37. data/doc/rdoc/created.rid +0 -1
  38. data/doc/rdoc/files/CHANGES.html +0 -92
  39. data/doc/rdoc/files/COPYING.html +0 -992
  40. data/doc/rdoc/files/METADATA.html +0 -102
  41. data/doc/rdoc/files/NEWS.html +0 -102
  42. data/doc/rdoc/files/README.html +0 -171
  43. data/doc/rdoc/files/lib/folio/device_rb.html +0 -96
  44. data/doc/rdoc/files/lib/folio/directory_rb.html +0 -96
  45. data/doc/rdoc/files/lib/folio/document_rb.html +0 -96
  46. data/doc/rdoc/files/lib/folio/errors_rb.html +0 -92
  47. data/doc/rdoc/files/lib/folio/fileobject_rb.html +0 -97
  48. data/doc/rdoc/files/lib/folio/link_rb.html +0 -96
  49. data/doc/rdoc/files/lib/folio/pipe_rb.html +0 -96
  50. data/doc/rdoc/files/lib/folio/prompt_rb.html +0 -92
  51. data/doc/rdoc/files/lib/folio/socket_rb.html +0 -96
  52. data/doc/rdoc/files/lib/folio_rb.html +0 -105
  53. data/doc/rdoc/fr_class_index.html +0 -59
  54. data/doc/rdoc/fr_file_index.html +0 -61
  55. data/doc/rdoc/fr_method_index.html +0 -195
  56. data/doc/rdoc/index.html +0 -26
  57. data/doc/rdoc/rdoc-style.css +0 -175
  58. data/doc/ri/Enumerator/cdesc-Enumerator.yaml +0 -15
  59. data/doc/ri/Folio/BlockDevice/blockdev%3f-i.yaml +0 -10
  60. data/doc/ri/Folio/BlockDevice/cdesc-BlockDevice.yaml +0 -18
  61. data/doc/ri/Folio/CharacterDevice/cdesc-CharacterDevice.yaml +0 -18
  62. data/doc/ri/Folio/CharacterDevice/chardev%3f-i.yaml +0 -10
  63. data/doc/ri/Folio/Device/cdesc-Device.yaml +0 -18
  64. data/doc/ri/Folio/Device/new-c.yaml +0 -10
  65. data/doc/ri/Folio/Directory/%2b-i.yaml +0 -12
  66. data/doc/ri/Folio/Directory/%2f-i.yaml +0 -13
  67. data/doc/ri/Folio/Directory/cd-i.yaml +0 -12
  68. data/doc/ri/Folio/Directory/cdesc-Directory.yaml +0 -57
  69. data/doc/ri/Folio/Directory/chdir-i.yaml +0 -13
  70. data/doc/ri/Folio/Directory/chmod_r-i.yaml +0 -12
  71. data/doc/ri/Folio/Directory/chown_r-i.yaml +0 -12
  72. data/doc/ri/Folio/Directory/chroot-i.yaml +0 -12
  73. data/doc/ri/Folio/Directory/cp_r-i.yaml +0 -12
  74. data/doc/ri/Folio/Directory/delete-i.yaml +0 -12
  75. data/doc/ri/Folio/Directory/directories-i.yaml +0 -12
  76. data/doc/ri/Folio/Directory/directory%3f-i.yaml +0 -10
  77. data/doc/ri/Folio/Directory/directory_entries-i.yaml +0 -12
  78. data/doc/ri/Folio/Directory/document_entries-i.yaml +0 -12
  79. data/doc/ri/Folio/Directory/documents-i.yaml +0 -12
  80. data/doc/ri/Folio/Directory/entries-i.yaml +0 -12
  81. data/doc/ri/Folio/Directory/files-i.yaml +0 -12
  82. data/doc/ri/Folio/Directory/foreach-i.yaml +0 -12
  83. data/doc/ri/Folio/Directory/new-c.yaml +0 -10
  84. data/doc/ri/Folio/Directory/rm_r-i.yaml +0 -12
  85. data/doc/ri/Folio/Directory/rm_rf-i.yaml +0 -12
  86. data/doc/ri/Folio/Directory/rmdir-i.yaml +0 -15
  87. data/doc/ri/Folio/Directory/unlink-i.yaml +0 -12
  88. data/doc/ri/Folio/Document/%3c%3c-i.yaml +0 -12
  89. data/doc/ri/Folio/Document/%3c-i.yaml +0 -12
  90. data/doc/ri/Folio/Document/append-i.yaml +0 -13
  91. data/doc/ri/Folio/Document/cdesc-Document.yaml +0 -42
  92. data/doc/ri/Folio/Document/delete-i.yaml +0 -10
  93. data/doc/ri/Folio/Document/document%3f-i.yaml +0 -12
  94. data/doc/ri/Folio/Document/executable%3f-i.yaml +0 -10
  95. data/doc/ri/Folio/Document/executable_real%3f-i.yaml +0 -10
  96. data/doc/ri/Folio/Document/intialize-i.yaml +0 -10
  97. data/doc/ri/Folio/Document/open-i.yaml +0 -10
  98. data/doc/ri/Folio/Document/read-i.yaml +0 -10
  99. data/doc/ri/Folio/Document/readlines-i.yaml +0 -10
  100. data/doc/ri/Folio/Document/truncate-i.yaml +0 -10
  101. data/doc/ri/Folio/Document/unlink-i.yaml +0 -12
  102. data/doc/ri/Folio/Document/write-i.yaml +0 -13
  103. data/doc/ri/Folio/FileNotFound/cdesc-FileNotFound.yaml +0 -15
  104. data/doc/ri/Folio/FileObject/%3c%3d%3e-i.yaml +0 -10
  105. data/doc/ri/Folio/FileObject/%3d%3d-i.yaml +0 -10
  106. data/doc/ri/Folio/FileObject/%5b%5d-c.yaml +0 -12
  107. data/doc/ri/Folio/FileObject/atime-i.yaml +0 -10
  108. data/doc/ri/Folio/FileObject/basename-i.yaml +0 -10
  109. data/doc/ri/Folio/FileObject/blockdev%3f-i.yaml +0 -10
  110. data/doc/ri/Folio/FileObject/cdesc-FileObject.yaml +0 -154
  111. data/doc/ri/Folio/FileObject/chardev%3f-i.yaml +0 -10
  112. data/doc/ri/Folio/FileObject/chmod-i.yaml +0 -10
  113. data/doc/ri/Folio/FileObject/chown-i.yaml +0 -10
  114. data/doc/ri/Folio/FileObject/cp-i.yaml +0 -12
  115. data/doc/ri/Folio/FileObject/ctime-i.yaml +0 -10
  116. data/doc/ri/Folio/FileObject/delete-i.yaml +0 -12
  117. data/doc/ri/Folio/FileObject/delete_force-i.yaml +0 -12
  118. data/doc/ri/Folio/FileObject/directory%3f-i.yaml +0 -10
  119. data/doc/ri/Folio/FileObject/dirname-i.yaml +0 -10
  120. data/doc/ri/Folio/FileObject/document%3f-i.yaml +0 -12
  121. data/doc/ri/Folio/FileObject/exist%3f-i.yaml +0 -13
  122. data/doc/ri/Folio/FileObject/exists%3f-i.yaml +0 -12
  123. data/doc/ri/Folio/FileObject/extname-i.yaml +0 -10
  124. data/doc/ri/Folio/FileObject/fnmatch%3f-i.yaml +0 -12
  125. data/doc/ri/Folio/FileObject/fnmatch-i.yaml +0 -11
  126. data/doc/ri/Folio/FileObject/grpowned%3f-i.yaml +0 -10
  127. data/doc/ri/Folio/FileObject/identical%3f-i.yaml +0 -10
  128. data/doc/ri/Folio/FileObject/inspect-i.yaml +0 -12
  129. data/doc/ri/Folio/FileObject/install-i.yaml +0 -12
  130. data/doc/ri/Folio/FileObject/link-i.yaml +0 -11
  131. data/doc/ri/Folio/FileObject/link_force-i.yaml +0 -11
  132. data/doc/ri/Folio/FileObject/ln-i.yaml +0 -12
  133. data/doc/ri/Folio/FileObject/ln_f-i.yaml +0 -12
  134. data/doc/ri/Folio/FileObject/ln_s-i.yaml +0 -12
  135. data/doc/ri/Folio/FileObject/ln_sf-i.yaml +0 -12
  136. data/doc/ri/Folio/FileObject/mtime-i.yaml +0 -10
  137. data/doc/ri/Folio/FileObject/mv-i.yaml +0 -12
  138. data/doc/ri/Folio/FileObject/new-c.yaml +0 -10
  139. data/doc/ri/Folio/FileObject/owned%3f-i.yaml +0 -10
  140. data/doc/ri/Folio/FileObject/pipe%3f-i.yaml +0 -10
  141. data/doc/ri/Folio/FileObject/readable%3f-i.yaml +0 -10
  142. data/doc/ri/Folio/FileObject/readable_real%3f-i.yaml +0 -10
  143. data/doc/ri/Folio/FileObject/relative-i.yaml +0 -12
  144. data/doc/ri/Folio/FileObject/rename-i.yaml +0 -11
  145. data/doc/ri/Folio/FileObject/restat-i.yaml +0 -13
  146. data/doc/ri/Folio/FileObject/rm-i.yaml +0 -12
  147. data/doc/ri/Folio/FileObject/rm_f-i.yaml +0 -12
  148. data/doc/ri/Folio/FileObject/setgid%3f-i.yaml +0 -10
  149. data/doc/ri/Folio/FileObject/setuid%3f-i.yaml +0 -10
  150. data/doc/ri/Folio/FileObject/size%3f-i.yaml +0 -10
  151. data/doc/ri/Folio/FileObject/size-i.yaml +0 -10
  152. data/doc/ri/Folio/FileObject/socket%3f-i.yaml +0 -10
  153. data/doc/ri/Folio/FileObject/split-i.yaml +0 -12
  154. data/doc/ri/Folio/FileObject/stat%21-i.yaml +0 -12
  155. data/doc/ri/Folio/FileObject/stat-i.yaml +0 -12
  156. data/doc/ri/Folio/FileObject/sticky%3f-i.yaml +0 -10
  157. data/doc/ri/Folio/FileObject/symlink-i.yaml +0 -11
  158. data/doc/ri/Folio/FileObject/symlink_force-i.yaml +0 -11
  159. data/doc/ri/Folio/FileObject/to_s-i.yaml +0 -12
  160. data/doc/ri/Folio/FileObject/touch-i.yaml +0 -10
  161. data/doc/ri/Folio/FileObject/unlink-i.yaml +0 -15
  162. data/doc/ri/Folio/FileObject/unlink_force-i.yaml +0 -13
  163. data/doc/ri/Folio/FileObject/util-i.yaml +0 -10
  164. data/doc/ri/Folio/FileObject/utime-i.yaml +0 -10
  165. data/doc/ri/Folio/FileObject/writable%3f-i.yaml +0 -10
  166. data/doc/ri/Folio/FileObject/writable_real%3f-i.yaml +0 -10
  167. data/doc/ri/Folio/FileObject/zero%3f-i.yaml +0 -10
  168. data/doc/ri/Folio/Link/cdesc-Link.yaml +0 -29
  169. data/doc/ri/Folio/Link/lchmod-i.yaml +0 -10
  170. data/doc/ri/Folio/Link/lchown-i.yaml +0 -10
  171. data/doc/ri/Folio/Link/link%3f-i.yaml +0 -10
  172. data/doc/ri/Folio/Link/lstat-i.yaml +0 -10
  173. data/doc/ri/Folio/Link/method_missing-i.yaml +0 -11
  174. data/doc/ri/Folio/Link/new-c.yaml +0 -10
  175. data/doc/ri/Folio/Link/readlink-i.yaml +0 -10
  176. data/doc/ri/Folio/Link/symlink%3f-i.yaml +0 -10
  177. data/doc/ri/Folio/Pipe/cdesc-Pipe.yaml +0 -17
  178. data/doc/ri/Folio/Pipe/new-c.yaml +0 -10
  179. data/doc/ri/Folio/Pipe/pipe%3f-i.yaml +0 -10
  180. data/doc/ri/Folio/Prompt/%2b-i.yaml +0 -13
  181. data/doc/ri/Folio/Prompt/%2f-i.yaml +0 -12
  182. data/doc/ri/Folio/Prompt/%5b%5d-c.yaml +0 -10
  183. data/doc/ri/Folio/Prompt/%5b%5d-i.yaml +0 -12
  184. data/doc/ri/Folio/Prompt/cd-i.yaml +0 -10
  185. data/doc/ri/Folio/Prompt/cdesc-Prompt.yaml +0 -95
  186. data/doc/ri/Folio/Prompt/chmod-i.yaml +0 -10
  187. data/doc/ri/Folio/Prompt/chmod_r-i.yaml +0 -10
  188. data/doc/ri/Folio/Prompt/chown-i.yaml +0 -12
  189. data/doc/ri/Folio/Prompt/chown_r-i.yaml +0 -10
  190. data/doc/ri/Folio/Prompt/cp-i.yaml +0 -12
  191. data/doc/ri/Folio/Prompt/cp_r-i.yaml +0 -12
  192. data/doc/ri/Folio/Prompt/directories-i.yaml +0 -12
  193. data/doc/ri/Folio/Prompt/directory_entries-i.yaml +0 -12
  194. data/doc/ri/Folio/Prompt/document_entries-i.yaml +0 -12
  195. data/doc/ri/Folio/Prompt/documents-i.yaml +0 -12
  196. data/doc/ri/Folio/Prompt/entries-i.yaml +0 -13
  197. data/doc/ri/Folio/Prompt/file-i.yaml +0 -13
  198. data/doc/ri/Folio/Prompt/files-i.yaml +0 -12
  199. data/doc/ri/Folio/Prompt/fileutils-i.yaml +0 -12
  200. data/doc/ri/Folio/Prompt/glob-i.yaml +0 -12
  201. data/doc/ri/Folio/Prompt/install-i.yaml +0 -10
  202. data/doc/ri/Folio/Prompt/ln-i.yaml +0 -12
  203. data/doc/ri/Folio/Prompt/ln_s-i.yaml +0 -12
  204. data/doc/ri/Folio/Prompt/ln_sf-i.yaml +0 -10
  205. data/doc/ri/Folio/Prompt/localize-i.yaml +0 -10
  206. data/doc/ri/Folio/Prompt/ls-i.yaml +0 -12
  207. data/doc/ri/Folio/Prompt/mkdir-i.yaml +0 -10
  208. data/doc/ri/Folio/Prompt/mkdir_p-i.yaml +0 -10
  209. data/doc/ri/Folio/Prompt/mode-i.yaml +0 -12
  210. data/doc/ri/Folio/Prompt/mv-i.yaml +0 -12
  211. data/doc/ri/Folio/Prompt/new-c.yaml +0 -11
  212. data/doc/ri/Folio/Prompt/rm-i.yaml +0 -10
  213. data/doc/ri/Folio/Prompt/rm_r-i.yaml +0 -10
  214. data/doc/ri/Folio/Prompt/rm_rf-i.yaml +0 -10
  215. data/doc/ri/Folio/Prompt/rmdir-i.yaml +0 -10
  216. data/doc/ri/Folio/Prompt/to_s-i.yaml +0 -10
  217. data/doc/ri/Folio/Prompt/touch-i.yaml +0 -12
  218. data/doc/ri/Folio/Socket/cdesc-Socket.yaml +0 -16
  219. data/doc/ri/Folio/Socket/new-c.yaml +0 -10
  220. data/doc/ri/Folio/cdesc-Folio.yaml +0 -15
  221. data/doc/ri/created.rid +0 -1
  222. data/test/fixture/bar.txt +0 -0
  223. data/test/fixture/foo.txt +0 -0
  224. data/test/test_folio.rb +0 -28
  225. data/test/test_helper.rb +0 -7
@@ -1,102 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html>
6
- <head>
7
- <title>File: METADATA</title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
-
11
- <script language="JavaScript" type="text/javascript">
12
- // <![CDATA[
13
-
14
- function toggleSource( id )
15
- {
16
- var elem
17
- var link
18
-
19
- if( document.getElementById )
20
- {
21
- elem = document.getElementById( id )
22
- link = document.getElementById( "l_" + id )
23
- }
24
- else if ( document.all )
25
- {
26
- elem = eval( "document.all." + id )
27
- link = eval( "document.all.l_" + id )
28
- }
29
- else
30
- return false;
31
-
32
- if( elem.style.display == "block" )
33
- {
34
- elem.style.display = "none"
35
- link.innerHTML = "show source"
36
- }
37
- else
38
- {
39
- elem.style.display = "block"
40
- link.innerHTML = "hide source"
41
- }
42
- }
43
-
44
- function openCode( url )
45
- {
46
- window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
- }
48
- // ]]>
49
- </script>
50
- </head>
51
-
52
- <body>
53
- <table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
54
- <tr><td>
55
- <table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
56
- <td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />METADATA</td>
57
- <td align="right">
58
- <table border='0' cellspacing="0" cellpadding="2">
59
- <tr>
60
- <td>Path:</td>
61
- <td>METADATA
62
- </td>
63
- </tr>
64
- <tr>
65
- <td>Modified:</td>
66
- <td>Sat Aug 30 23:06:37 -0400 2008</td>
67
- </tr>
68
- </table>
69
- </td></tr>
70
- </table>
71
- </td></tr>
72
- </table><br />
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
- <div id="content">
77
-
78
- <div class="description"><p>
79
- name : folio version : 0.2.0 status : alpha homepage : <a
80
- href="http://folio.rubyforge.org">folio.rubyforge.org</a> contact :
81
- tigerops-community@rubyforge.org author : 7rans &lt;transfire@gmail.com&gt;
82
- summary : <a href="../classes/Folio.html">Folio</a> is a better way to
83
- access the file system. abstract : <a
84
- href="../classes/Folio.html">Folio</a> is a better way to access the file
85
- system.
86
- </p>
87
- </div>
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- </div>
98
-
99
- </div>
100
-
101
- </body>
102
- </html>
@@ -1,102 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html>
6
- <head>
7
- <title>File: NEWS</title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
-
11
- <script language="JavaScript" type="text/javascript">
12
- // <![CDATA[
13
-
14
- function toggleSource( id )
15
- {
16
- var elem
17
- var link
18
-
19
- if( document.getElementById )
20
- {
21
- elem = document.getElementById( id )
22
- link = document.getElementById( "l_" + id )
23
- }
24
- else if ( document.all )
25
- {
26
- elem = eval( "document.all." + id )
27
- link = eval( "document.all.l_" + id )
28
- }
29
- else
30
- return false;
31
-
32
- if( elem.style.display == "block" )
33
- {
34
- elem.style.display = "none"
35
- link.innerHTML = "show source"
36
- }
37
- else
38
- {
39
- elem.style.display = "block"
40
- link.innerHTML = "hide source"
41
- }
42
- }
43
-
44
- function openCode( url )
45
- {
46
- window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
- }
48
- // ]]>
49
- </script>
50
- </head>
51
-
52
- <body>
53
- <table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
54
- <tr><td>
55
- <table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
56
- <td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />NEWS</td>
57
- <td align="right">
58
- <table border='0' cellspacing="0" cellpadding="2">
59
- <tr>
60
- <td>Path:</td>
61
- <td>NEWS
62
- </td>
63
- </tr>
64
- <tr>
65
- <td>Modified:</td>
66
- <td>Fri Aug 22 16:41:52 -0400 2008</td>
67
- </tr>
68
- </table>
69
- </td></tr>
70
- </table>
71
- </td></tr>
72
- </table><br />
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
- <div id="content">
77
-
78
- <div class="description"><h1>News &amp; Release Notes</h1>
79
- <h2>0.1.0 // 2008-08-18</h2>
80
- <p>
81
- <a href="../classes/Folio.html">Folio</a> was spawned by ruby-talk:311762.
82
- </p>
83
- <p>
84
- This is the initial release of <a href="../classes/Folio.html">Folio</a>.
85
- As such it is very much an alpha release!!!
86
- </p>
87
- </div>
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- </div>
98
-
99
- </div>
100
-
101
- </body>
102
- </html>
@@ -1,171 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html>
6
- <head>
7
- <title>File: README</title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
-
11
- <script language="JavaScript" type="text/javascript">
12
- // <![CDATA[
13
-
14
- function toggleSource( id )
15
- {
16
- var elem
17
- var link
18
-
19
- if( document.getElementById )
20
- {
21
- elem = document.getElementById( id )
22
- link = document.getElementById( "l_" + id )
23
- }
24
- else if ( document.all )
25
- {
26
- elem = eval( "document.all." + id )
27
- link = eval( "document.all.l_" + id )
28
- }
29
- else
30
- return false;
31
-
32
- if( elem.style.display == "block" )
33
- {
34
- elem.style.display = "none"
35
- link.innerHTML = "show source"
36
- }
37
- else
38
- {
39
- elem.style.display = "block"
40
- link.innerHTML = "hide source"
41
- }
42
- }
43
-
44
- function openCode( url )
45
- {
46
- window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
- }
48
- // ]]>
49
- </script>
50
- </head>
51
-
52
- <body>
53
- <table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
54
- <tr><td>
55
- <table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
56
- <td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />README</td>
57
- <td align="right">
58
- <table border='0' cellspacing="0" cellpadding="2">
59
- <tr>
60
- <td>Path:</td>
61
- <td>README
62
- </td>
63
- </tr>
64
- <tr>
65
- <td>Modified:</td>
66
- <td>Wed Aug 27 02:48:35 -0400 2008</td>
67
- </tr>
68
- </table>
69
- </td></tr>
70
- </table>
71
- </td></tr>
72
- </table><br />
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
- <div id="content">
77
-
78
- <div class="description"><h1><a href="../classes/Folio.html">Folio</a></h1>
79
- <pre>
80
- http://folio.rubyforge.org
81
- </pre>
82
- <h2>Introduction</h2>
83
- <p>
84
- <a href="../classes/Folio.html">Folio</a> is a &quot;better way&quot; to
85
- access the filesystem in your Ruby programs. It works by elmulating the
86
- behavior of a command shell. So just as you @cd@ up and down the file
87
- hierarchy at a shell prompt, you do the same against a Filio Prompt object.
88
- </p>
89
- <p>
90
- In addition <a href="../classes/Folio.html">Folio</a> wraps all the common
91
- File System objects, providing a more intutive means of handling these in
92
- an dobject-oriented manner. For instance, <a
93
- href="../classes/Folio/Link.html">Folio::Link</a> represents a link on the
94
- file system, and just as the link references another file, so de the <a
95
- href="../classes/Folio/Link.html">Folio::Link</a> object deletgate to
96
- another <a href="../classes/Folio.html">Folio</a> file object.
97
- </p>
98
- <h2>Usage</h2>
99
- <p>
100
- Since this is such an early release the API is still subject to change. But
101
- the basic idea remains the same:
102
- </p>
103
- <pre>
104
- require 'folio'
105
-
106
- # get a folio prompt on the current directory (Dir.pwd).
107
- cursor = Folio::Prompt.new
108
-
109
- # return a list of directory's entries as strings.
110
- cursor.ls
111
-
112
- # return a list of directories as Directory objects.
113
- cursor.directories
114
-
115
- # return a list of regular files as Document objects.
116
- cursor.documents
117
-
118
- # Change down to the foo directory.
119
- cursor.cd('foo')
120
-
121
- # return a list of all entries as File objects.
122
- p cursor.files
123
- </pre>
124
- <h2>Install</h2>
125
- <p>
126
- You know the Gem drill.
127
- </p>
128
- <pre>
129
- $ gem install folio
130
- </pre>
131
- <p>
132
- And you may know the Setup drill.*
133
- </p>
134
- <pre>
135
- $ tar -xvzf folio-0.1.0.tgz
136
- $ cd folio-0.1.0.tgz
137
- $ ruby setup.rb
138
- </pre>
139
- <p>
140
- *requires &lt;a href=&quot;<a
141
- href="http://setup.rubyforge.org">Ruby">setup.rubyforge.org">Ruby</a>
142
- Setup&lt;/a&gt;
143
- </p>
144
- <h2>Resources</h2>
145
- <p>
146
- &lt;a href=&quot;rio.rubyforge.org&quot;&gt;Rio&lt;a&gt; is a similar too.
147
- It&#8216;s very well documented, but has a different design philiosophy
148
- having it&#8216;s own more unique DSL.
149
- </p>
150
- <h2>Copying</h2>
151
- <p>
152
- <a href="../classes/Folio.html">Folio</a> is Copyright (c)2008 Tiger Ops
153
- &amp; Thomas Sawyer <a href="../classes/Folio.html">Folio</a> is
154
- distributed under the terms of the GPLv3.
155
- </p>
156
- </div>
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
- </div>
167
-
168
- </div>
169
-
170
- </body>
171
- </html>
@@ -1,96 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html>
6
- <head>
7
- <title>File: device.rb</title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
10
-
11
- <script language="JavaScript" type="text/javascript">
12
- // <![CDATA[
13
-
14
- function toggleSource( id )
15
- {
16
- var elem
17
- var link
18
-
19
- if( document.getElementById )
20
- {
21
- elem = document.getElementById( id )
22
- link = document.getElementById( "l_" + id )
23
- }
24
- else if ( document.all )
25
- {
26
- elem = eval( "document.all." + id )
27
- link = eval( "document.all.l_" + id )
28
- }
29
- else
30
- return false;
31
-
32
- if( elem.style.display == "block" )
33
- {
34
- elem.style.display = "none"
35
- link.innerHTML = "show source"
36
- }
37
- else
38
- {
39
- elem.style.display = "block"
40
- link.innerHTML = "hide source"
41
- }
42
- }
43
-
44
- function openCode( url )
45
- {
46
- window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
- }
48
- // ]]>
49
- </script>
50
- </head>
51
-
52
- <body>
53
- <table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
54
- <tr><td>
55
- <table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
56
- <td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />device.rb</td>
57
- <td align="right">
58
- <table border='0' cellspacing="0" cellpadding="2">
59
- <tr>
60
- <td>Path:</td>
61
- <td>lib/folio/device.rb
62
- </td>
63
- </tr>
64
- <tr>
65
- <td>Modified:</td>
66
- <td>Wed Aug 20 09:51:02 -0400 2008</td>
67
- </tr>
68
- </table>
69
- </td></tr>
70
- </table>
71
- </td></tr>
72
- </table><br />
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
- <div id="content">
77
-
78
-
79
- <div class="sectiontitle">Required Files</div>
80
- <ul>
81
- <li>folio/fileobject</li>
82
- </ul>
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
- </div>
92
-
93
- </div>
94
-
95
- </body>
96
- </html>