folio 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. data/COPYING +675 -0
  2. data/MANIFEST +234 -0
  3. data/METADATA +8 -0
  4. data/NEWS +9 -0
  5. data/README +69 -0
  6. data/demo/sample1/foo/foo.txt +1 -0
  7. data/demo/sample1/tryme.rb +14 -0
  8. data/doc/rdoc/classes/Folio/BlockDevice.html +117 -0
  9. data/doc/rdoc/classes/Folio/CharacterDevice.html +117 -0
  10. data/doc/rdoc/classes/Folio/Device.html +119 -0
  11. data/doc/rdoc/classes/Folio/Directory.html +420 -0
  12. data/doc/rdoc/classes/Folio/Document.html +261 -0
  13. data/doc/rdoc/classes/Folio/FileNotFound.html +92 -0
  14. data/doc/rdoc/classes/Folio/FileObject.html +1200 -0
  15. data/doc/rdoc/classes/Folio/Link.html +238 -0
  16. data/doc/rdoc/classes/Folio/Pipe.html +131 -0
  17. data/doc/rdoc/classes/Folio/Prompt.html +796 -0
  18. data/doc/rdoc/classes/Folio/Socket.html +115 -0
  19. data/doc/rdoc/classes/Folio.html +148 -0
  20. data/doc/rdoc/created.rid +1 -0
  21. data/doc/rdoc/files/COPYING.html +992 -0
  22. data/doc/rdoc/files/METADATA.html +101 -0
  23. data/doc/rdoc/files/NEWS.html +102 -0
  24. data/doc/rdoc/files/README.html +171 -0
  25. data/doc/rdoc/files/lib/folio/device_rb.html +96 -0
  26. data/doc/rdoc/files/lib/folio/directory_rb.html +96 -0
  27. data/doc/rdoc/files/lib/folio/document_rb.html +96 -0
  28. data/doc/rdoc/files/lib/folio/errors_rb.html +92 -0
  29. data/doc/rdoc/files/lib/folio/fileobject_rb.html +92 -0
  30. data/doc/rdoc/files/lib/folio/link_rb.html +96 -0
  31. data/doc/rdoc/files/lib/folio/pipe_rb.html +96 -0
  32. data/doc/rdoc/files/lib/folio/prompt_rb.html +92 -0
  33. data/doc/rdoc/files/lib/folio/socket_rb.html +96 -0
  34. data/doc/rdoc/files/lib/folio_rb.html +105 -0
  35. data/doc/rdoc/fr_class_index.html +58 -0
  36. data/doc/rdoc/fr_file_index.html +60 -0
  37. data/doc/rdoc/fr_method_index.html +185 -0
  38. data/doc/rdoc/index.html +26 -0
  39. data/doc/rdoc/rdoc-style.css +175 -0
  40. data/doc/ri/Folio/BlockDevice/blockdev%3f-i.yaml +10 -0
  41. data/doc/ri/Folio/BlockDevice/cdesc-BlockDevice.yaml +18 -0
  42. data/doc/ri/Folio/CharacterDevice/cdesc-CharacterDevice.yaml +18 -0
  43. data/doc/ri/Folio/CharacterDevice/chardev%3f-i.yaml +10 -0
  44. data/doc/ri/Folio/Device/cdesc-Device.yaml +18 -0
  45. data/doc/ri/Folio/Device/new-c.yaml +10 -0
  46. data/doc/ri/Folio/Directory/%2b-i.yaml +12 -0
  47. data/doc/ri/Folio/Directory/%2f-i.yaml +13 -0
  48. data/doc/ri/Folio/Directory/cd-i.yaml +12 -0
  49. data/doc/ri/Folio/Directory/cdesc-Directory.yaml +49 -0
  50. data/doc/ri/Folio/Directory/chdir-i.yaml +11 -0
  51. data/doc/ri/Folio/Directory/chmod_r-i.yaml +10 -0
  52. data/doc/ri/Folio/Directory/chown_r-i.yaml +12 -0
  53. data/doc/ri/Folio/Directory/chroot-i.yaml +10 -0
  54. data/doc/ri/Folio/Directory/cp_r-i.yaml +12 -0
  55. data/doc/ri/Folio/Directory/delete-i.yaml +12 -0
  56. data/doc/ri/Folio/Directory/directory%3f-i.yaml +10 -0
  57. data/doc/ri/Folio/Directory/entries-i.yaml +12 -0
  58. data/doc/ri/Folio/Directory/foreach-i.yaml +10 -0
  59. data/doc/ri/Folio/Directory/new-c.yaml +10 -0
  60. data/doc/ri/Folio/Directory/paths-i.yaml +12 -0
  61. data/doc/ri/Folio/Directory/rm_r-i.yaml +10 -0
  62. data/doc/ri/Folio/Directory/rm_rf-i.yaml +10 -0
  63. data/doc/ri/Folio/Directory/rmdir-i.yaml +13 -0
  64. data/doc/ri/Folio/Directory/unlink-i.yaml +12 -0
  65. data/doc/ri/Folio/Document/cdesc-Document.yaml +34 -0
  66. data/doc/ri/Folio/Document/delete-i.yaml +10 -0
  67. data/doc/ri/Folio/Document/executable%3f-i.yaml +10 -0
  68. data/doc/ri/Folio/Document/executable_real%3f-i.yaml +10 -0
  69. data/doc/ri/Folio/Document/file%3f-i.yaml +10 -0
  70. data/doc/ri/Folio/Document/intialize-i.yaml +10 -0
  71. data/doc/ri/Folio/Document/open-i.yaml +10 -0
  72. data/doc/ri/Folio/Document/read-i.yaml +10 -0
  73. data/doc/ri/Folio/Document/readlines-i.yaml +10 -0
  74. data/doc/ri/Folio/Document/truncate-i.yaml +10 -0
  75. data/doc/ri/Folio/Document/unlink-i.yaml +12 -0
  76. data/doc/ri/Folio/FileNotFound/cdesc-FileNotFound.yaml +15 -0
  77. data/doc/ri/Folio/FileObject/%3c%3d%3e-i.yaml +10 -0
  78. data/doc/ri/Folio/FileObject/%3d%3d-i.yaml +10 -0
  79. data/doc/ri/Folio/FileObject/%5b%5d-c.yaml +12 -0
  80. data/doc/ri/Folio/FileObject/atime-i.yaml +10 -0
  81. data/doc/ri/Folio/FileObject/basename-i.yaml +10 -0
  82. data/doc/ri/Folio/FileObject/blockdev%3f-i.yaml +10 -0
  83. data/doc/ri/Folio/FileObject/cdesc-FileObject.yaml +154 -0
  84. data/doc/ri/Folio/FileObject/chardev%3f-i.yaml +10 -0
  85. data/doc/ri/Folio/FileObject/chmod-i.yaml +10 -0
  86. data/doc/ri/Folio/FileObject/chown-i.yaml +10 -0
  87. data/doc/ri/Folio/FileObject/cp-i.yaml +12 -0
  88. data/doc/ri/Folio/FileObject/ctime-i.yaml +10 -0
  89. data/doc/ri/Folio/FileObject/delete-i.yaml +12 -0
  90. data/doc/ri/Folio/FileObject/delete_force-i.yaml +12 -0
  91. data/doc/ri/Folio/FileObject/directory%3f-i.yaml +10 -0
  92. data/doc/ri/Folio/FileObject/dirname-i.yaml +10 -0
  93. data/doc/ri/Folio/FileObject/exist%3f-i.yaml +13 -0
  94. data/doc/ri/Folio/FileObject/exists%3f-i.yaml +12 -0
  95. data/doc/ri/Folio/FileObject/extname-i.yaml +10 -0
  96. data/doc/ri/Folio/FileObject/file%3f-i.yaml +10 -0
  97. data/doc/ri/Folio/FileObject/fnmatch%3f-i.yaml +12 -0
  98. data/doc/ri/Folio/FileObject/fnmatch-i.yaml +11 -0
  99. data/doc/ri/Folio/FileObject/grpowned%3f-i.yaml +10 -0
  100. data/doc/ri/Folio/FileObject/identical%3f-i.yaml +10 -0
  101. data/doc/ri/Folio/FileObject/inspect-i.yaml +12 -0
  102. data/doc/ri/Folio/FileObject/install-i.yaml +12 -0
  103. data/doc/ri/Folio/FileObject/link-i.yaml +11 -0
  104. data/doc/ri/Folio/FileObject/link_force-i.yaml +11 -0
  105. data/doc/ri/Folio/FileObject/ln-i.yaml +12 -0
  106. data/doc/ri/Folio/FileObject/ln_f-i.yaml +12 -0
  107. data/doc/ri/Folio/FileObject/ln_s-i.yaml +12 -0
  108. data/doc/ri/Folio/FileObject/ln_sf-i.yaml +12 -0
  109. data/doc/ri/Folio/FileObject/mtime-i.yaml +10 -0
  110. data/doc/ri/Folio/FileObject/mv-i.yaml +12 -0
  111. data/doc/ri/Folio/FileObject/new-c.yaml +10 -0
  112. data/doc/ri/Folio/FileObject/owned%3f-i.yaml +10 -0
  113. data/doc/ri/Folio/FileObject/pipe%3f-i.yaml +10 -0
  114. data/doc/ri/Folio/FileObject/readable%3f-i.yaml +10 -0
  115. data/doc/ri/Folio/FileObject/readable_real%3f-i.yaml +10 -0
  116. data/doc/ri/Folio/FileObject/relative-i.yaml +12 -0
  117. data/doc/ri/Folio/FileObject/rename-i.yaml +11 -0
  118. data/doc/ri/Folio/FileObject/restat-i.yaml +13 -0
  119. data/doc/ri/Folio/FileObject/rm-i.yaml +12 -0
  120. data/doc/ri/Folio/FileObject/rm_f-i.yaml +12 -0
  121. data/doc/ri/Folio/FileObject/setgid%3f-i.yaml +10 -0
  122. data/doc/ri/Folio/FileObject/setuid%3f-i.yaml +10 -0
  123. data/doc/ri/Folio/FileObject/size%3f-i.yaml +10 -0
  124. data/doc/ri/Folio/FileObject/size-i.yaml +10 -0
  125. data/doc/ri/Folio/FileObject/socket%3f-i.yaml +10 -0
  126. data/doc/ri/Folio/FileObject/split-i.yaml +12 -0
  127. data/doc/ri/Folio/FileObject/stat%21-i.yaml +12 -0
  128. data/doc/ri/Folio/FileObject/stat-i.yaml +12 -0
  129. data/doc/ri/Folio/FileObject/sticky%3f-i.yaml +10 -0
  130. data/doc/ri/Folio/FileObject/symlink-i.yaml +11 -0
  131. data/doc/ri/Folio/FileObject/symlink_force-i.yaml +11 -0
  132. data/doc/ri/Folio/FileObject/to_s-i.yaml +12 -0
  133. data/doc/ri/Folio/FileObject/touch-i.yaml +10 -0
  134. data/doc/ri/Folio/FileObject/unlink-i.yaml +15 -0
  135. data/doc/ri/Folio/FileObject/unlink_force-i.yaml +13 -0
  136. data/doc/ri/Folio/FileObject/util-i.yaml +10 -0
  137. data/doc/ri/Folio/FileObject/utime-i.yaml +10 -0
  138. data/doc/ri/Folio/FileObject/writable%3f-i.yaml +10 -0
  139. data/doc/ri/Folio/FileObject/writable_real%3f-i.yaml +10 -0
  140. data/doc/ri/Folio/FileObject/zero%3f-i.yaml +10 -0
  141. data/doc/ri/Folio/Link/cdesc-Link.yaml +29 -0
  142. data/doc/ri/Folio/Link/lchmod-i.yaml +10 -0
  143. data/doc/ri/Folio/Link/lchown-i.yaml +10 -0
  144. data/doc/ri/Folio/Link/link%3f-i.yaml +10 -0
  145. data/doc/ri/Folio/Link/lstat-i.yaml +10 -0
  146. data/doc/ri/Folio/Link/method_missing-i.yaml +11 -0
  147. data/doc/ri/Folio/Link/new-c.yaml +10 -0
  148. data/doc/ri/Folio/Link/readlink-i.yaml +10 -0
  149. data/doc/ri/Folio/Link/symlink%3f-i.yaml +10 -0
  150. data/doc/ri/Folio/Pipe/cdesc-Pipe.yaml +17 -0
  151. data/doc/ri/Folio/Pipe/new-c.yaml +10 -0
  152. data/doc/ri/Folio/Pipe/pipe%3f-i.yaml +10 -0
  153. data/doc/ri/Folio/Prompt/%2b-i.yaml +13 -0
  154. data/doc/ri/Folio/Prompt/%2f-i.yaml +12 -0
  155. data/doc/ri/Folio/Prompt/%5b%5d-c.yaml +10 -0
  156. data/doc/ri/Folio/Prompt/cd-i.yaml +10 -0
  157. data/doc/ri/Folio/Prompt/cdesc-Prompt.yaml +89 -0
  158. data/doc/ri/Folio/Prompt/chmod-i.yaml +10 -0
  159. data/doc/ri/Folio/Prompt/chmod_r-i.yaml +10 -0
  160. data/doc/ri/Folio/Prompt/chown-i.yaml +12 -0
  161. data/doc/ri/Folio/Prompt/chown_r-i.yaml +10 -0
  162. data/doc/ri/Folio/Prompt/cp-i.yaml +12 -0
  163. data/doc/ri/Folio/Prompt/cp_r-i.yaml +12 -0
  164. data/doc/ri/Folio/Prompt/directories-i.yaml +12 -0
  165. data/doc/ri/Folio/Prompt/entries-i.yaml +13 -0
  166. data/doc/ri/Folio/Prompt/file-i.yaml +12 -0
  167. data/doc/ri/Folio/Prompt/files-i.yaml +12 -0
  168. data/doc/ri/Folio/Prompt/fileutils-i.yaml +10 -0
  169. data/doc/ri/Folio/Prompt/glob-i.yaml +12 -0
  170. data/doc/ri/Folio/Prompt/install-i.yaml +10 -0
  171. data/doc/ri/Folio/Prompt/ln-i.yaml +12 -0
  172. data/doc/ri/Folio/Prompt/ln_s-i.yaml +12 -0
  173. data/doc/ri/Folio/Prompt/ln_sf-i.yaml +10 -0
  174. data/doc/ri/Folio/Prompt/localize-i.yaml +10 -0
  175. data/doc/ri/Folio/Prompt/ls-i.yaml +12 -0
  176. data/doc/ri/Folio/Prompt/mkdir-i.yaml +10 -0
  177. data/doc/ri/Folio/Prompt/mkdir_p-i.yaml +10 -0
  178. data/doc/ri/Folio/Prompt/mode-i.yaml +12 -0
  179. data/doc/ri/Folio/Prompt/mv-i.yaml +12 -0
  180. data/doc/ri/Folio/Prompt/new-c.yaml +11 -0
  181. data/doc/ri/Folio/Prompt/paths-i.yaml +12 -0
  182. data/doc/ri/Folio/Prompt/pwd-i.yaml +10 -0
  183. data/doc/ri/Folio/Prompt/rm-i.yaml +10 -0
  184. data/doc/ri/Folio/Prompt/rm_r-i.yaml +10 -0
  185. data/doc/ri/Folio/Prompt/rm_rf-i.yaml +10 -0
  186. data/doc/ri/Folio/Prompt/rmdir-i.yaml +10 -0
  187. data/doc/ri/Folio/Prompt/to_s-i.yaml +10 -0
  188. data/doc/ri/Folio/Prompt/touch-i.yaml +12 -0
  189. data/doc/ri/Folio/Socket/cdesc-Socket.yaml +16 -0
  190. data/doc/ri/Folio/Socket/new-c.yaml +10 -0
  191. data/doc/ri/Folio/cdesc-Folio.yaml +15 -0
  192. data/doc/ri/created.rid +1 -0
  193. data/lib/folio/device.rb +29 -0
  194. data/lib/folio/directory.rb +83 -0
  195. data/lib/folio/document.rb +66 -0
  196. data/lib/folio/errors.rb +7 -0
  197. data/lib/folio/fileobject.rb +242 -0
  198. data/lib/folio/link.rb +49 -0
  199. data/lib/folio/pipe.rb +16 -0
  200. data/lib/folio/prompt.rb +239 -0
  201. data/lib/folio/socket.rb +14 -0
  202. data/lib/folio.rb +79 -0
  203. data/test/fixture/bar.txt +0 -0
  204. data/test/fixture/foo.txt +0 -0
  205. data/test/test_folio.rb +28 -0
  206. data/test/test_helper.rb +7 -0
  207. metadata +300 -0
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:RI::ClassDescription
2
+ attributes: []
3
+
4
+ class_methods:
5
+ - !ruby/object:RI::MethodSummary
6
+ name: new
7
+ comment:
8
+ constants: []
9
+
10
+ full_name: Folio::Directory
11
+ includes: []
12
+
13
+ instance_methods:
14
+ - !ruby/object:RI::MethodSummary
15
+ name: +
16
+ - !ruby/object:RI::MethodSummary
17
+ name: /
18
+ - !ruby/object:RI::MethodSummary
19
+ name: cd
20
+ - !ruby/object:RI::MethodSummary
21
+ name: chdir
22
+ - !ruby/object:RI::MethodSummary
23
+ name: chmod_r
24
+ - !ruby/object:RI::MethodSummary
25
+ name: chown_r
26
+ - !ruby/object:RI::MethodSummary
27
+ name: chroot
28
+ - !ruby/object:RI::MethodSummary
29
+ name: cp_r
30
+ - !ruby/object:RI::MethodSummary
31
+ name: delete
32
+ - !ruby/object:RI::MethodSummary
33
+ name: directory?
34
+ - !ruby/object:RI::MethodSummary
35
+ name: entries
36
+ - !ruby/object:RI::MethodSummary
37
+ name: foreach
38
+ - !ruby/object:RI::MethodSummary
39
+ name: paths
40
+ - !ruby/object:RI::MethodSummary
41
+ name: rm_r
42
+ - !ruby/object:RI::MethodSummary
43
+ name: rm_rf
44
+ - !ruby/object:RI::MethodSummary
45
+ name: rmdir
46
+ - !ruby/object:RI::MethodSummary
47
+ name: unlink
48
+ name: Directory
49
+ superclass: FileObject
@@ -0,0 +1,11 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases:
3
+ - !ruby/object:RI::AliasName
4
+ name: cd
5
+ block_params:
6
+ comment: ""
7
+ full_name: Folio::Directory#chdir
8
+ is_singleton: false
9
+ name: chdir
10
+ params: (&block)
11
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Directory#chmod_r
7
+ is_singleton: false
8
+ name: chmod_r
9
+ params: (mode)
10
+ visibility: public
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ - !ruby/struct:SM::Flow::P
7
+ body: alias_method :chmod_R, :chmod_r
8
+ full_name: Folio::Directory#chown_r
9
+ is_singleton: false
10
+ name: chown_r
11
+ params: (user, group)
12
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Directory#chroot
7
+ is_singleton: false
8
+ name: chroot
9
+ params: (&block)
10
+ visibility: public
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ - !ruby/struct:SM::Flow::P
7
+ body: Copy recursively.
8
+ full_name: Folio::Directory#cp_r
9
+ is_singleton: false
10
+ name: cp_r
11
+ params: (dest)
12
+ visibility: public
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ - !ruby/struct:SM::Flow::P
7
+ body: "Alias for #rmdir"
8
+ full_name: Folio::Directory#delete
9
+ is_singleton: false
10
+ name: delete
11
+ params: ()
12
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Directory#directory?
7
+ is_singleton: false
8
+ name: directory?
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ - !ruby/struct:SM::Flow::P
7
+ body: Directory entries. This returns a list of file names.
8
+ full_name: Folio::Directory#entries
9
+ is_singleton: false
10
+ name: entries
11
+ params: ()
12
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Directory#foreach
7
+ is_singleton: false
8
+ name: foreach
9
+ params: (&block)
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Directory::new
7
+ is_singleton: true
8
+ name: new
9
+ params: (path=nil)
10
+ visibility: public
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ - !ruby/struct:SM::Flow::P
7
+ body: "TODO: use enumerator (?)"
8
+ full_name: Folio::Directory#paths
9
+ is_singleton: false
10
+ name: paths
11
+ params: ()
12
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Directory#rm_r
7
+ is_singleton: false
8
+ name: rm_r
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Directory#rm_rf
7
+ is_singleton: false
8
+ name: rm_rf
9
+ params: (list)
10
+ visibility: public
@@ -0,0 +1,13 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases:
3
+ - !ruby/object:RI::AliasName
4
+ name: unlink
5
+ - !ruby/object:RI::AliasName
6
+ name: delete
7
+ block_params:
8
+ comment:
9
+ full_name: Folio::Directory#rmdir
10
+ is_singleton: false
11
+ name: rmdir
12
+ params: ()
13
+ visibility: public
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ - !ruby/struct:SM::Flow::P
7
+ body: "Alias for #rmdir"
8
+ full_name: Folio::Directory#unlink
9
+ is_singleton: false
10
+ name: unlink
11
+ params: ()
12
+ visibility: public
@@ -0,0 +1,34 @@
1
+ --- !ruby/object:RI::ClassDescription
2
+ attributes: []
3
+
4
+ class_methods: []
5
+
6
+ comment:
7
+ constants: []
8
+
9
+ full_name: Folio::Document
10
+ includes: []
11
+
12
+ instance_methods:
13
+ - !ruby/object:RI::MethodSummary
14
+ name: delete
15
+ - !ruby/object:RI::MethodSummary
16
+ name: executable?
17
+ - !ruby/object:RI::MethodSummary
18
+ name: executable_real?
19
+ - !ruby/object:RI::MethodSummary
20
+ name: file?
21
+ - !ruby/object:RI::MethodSummary
22
+ name: intialize
23
+ - !ruby/object:RI::MethodSummary
24
+ name: open
25
+ - !ruby/object:RI::MethodSummary
26
+ name: read
27
+ - !ruby/object:RI::MethodSummary
28
+ name: readlines
29
+ - !ruby/object:RI::MethodSummary
30
+ name: truncate
31
+ - !ruby/object:RI::MethodSummary
32
+ name: unlink
33
+ name: Document
34
+ superclass: FileObject
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Document#delete
7
+ is_singleton: false
8
+ name: delete
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment: ""
6
+ full_name: Folio::Document#executable?
7
+ is_singleton: false
8
+ name: executable?
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Document#executable_real?
7
+ is_singleton: false
8
+ name: executable_real?
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment: ""
6
+ full_name: Folio::Document#file?
7
+ is_singleton: false
8
+ name: file?
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Document#intialize
7
+ is_singleton: false
8
+ name: intialize
9
+ params: (path)
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment: ""
6
+ full_name: Folio::Document#open
7
+ is_singleton: false
8
+ name: open
9
+ params: (mode, &block)
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment: ""
6
+ full_name: Folio::Document#read
7
+ is_singleton: false
8
+ name: read
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Document#readlines
7
+ is_singleton: false
8
+ name: readlines
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::Document#truncate
7
+ is_singleton: false
8
+ name: truncate
9
+ params: (size)
10
+ visibility: public
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ - !ruby/struct:SM::Flow::P
7
+ body: "TODO: how to handle unkinking (b/c file no longer exists)"
8
+ full_name: Folio::Document#unlink
9
+ is_singleton: false
10
+ name: unlink
11
+ params: ()
12
+ visibility: public
@@ -0,0 +1,15 @@
1
+ --- !ruby/object:RI::ClassDescription
2
+ attributes: []
3
+
4
+ class_methods: []
5
+
6
+ comment:
7
+ constants: []
8
+
9
+ full_name: Folio::FileNotFound
10
+ includes: []
11
+
12
+ instance_methods: []
13
+
14
+ name: FileNotFound
15
+ superclass: "::IOError"
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::FileObject#<=>
7
+ is_singleton: false
8
+ name: <=>
9
+ params: (other)
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::FileObject#==
7
+ is_singleton: false
8
+ name: ==
9
+ params: (other)
10
+ visibility: public
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ - !ruby/struct:SM::Flow::P
7
+ body: Factory method.
8
+ full_name: Folio::FileObject::[]
9
+ is_singleton: true
10
+ name: "[]"
11
+ params: (*path)
12
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::FileObject#atime
7
+ is_singleton: false
8
+ name: atime
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment: ""
6
+ full_name: Folio::FileObject#basename
7
+ is_singleton: false
8
+ name: basename
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::FileObject#blockdev?
7
+ is_singleton: false
8
+ name: blockdev?
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,154 @@
1
+ --- !ruby/object:RI::ClassDescription
2
+ attributes:
3
+ - !ruby/object:RI::Attribute
4
+ comment:
5
+ name: path
6
+ rw: R
7
+ - !ruby/object:RI::Attribute
8
+ comment:
9
+ name: relpath
10
+ rw: R
11
+ class_methods:
12
+ - !ruby/object:RI::MethodSummary
13
+ name: "[]"
14
+ - !ruby/object:RI::MethodSummary
15
+ name: new
16
+ comment:
17
+ - !ruby/struct:SM::Flow::H
18
+ level: 1
19
+ text: File Object
20
+ - !ruby/struct:SM::Flow::P
21
+ body: Base class for all folio objects.
22
+ constants:
23
+ - !ruby/object:RI::Constant
24
+ comment:
25
+ name: Separator
26
+ value: "::File::Separator"
27
+ full_name: Folio::FileObject
28
+ includes: []
29
+
30
+ instance_methods:
31
+ - !ruby/object:RI::MethodSummary
32
+ name: <=>
33
+ - !ruby/object:RI::MethodSummary
34
+ name: ==
35
+ - !ruby/object:RI::MethodSummary
36
+ name: atime
37
+ - !ruby/object:RI::MethodSummary
38
+ name: basename
39
+ - !ruby/object:RI::MethodSummary
40
+ name: blockdev?
41
+ - !ruby/object:RI::MethodSummary
42
+ name: chardev?
43
+ - !ruby/object:RI::MethodSummary
44
+ name: chmod
45
+ - !ruby/object:RI::MethodSummary
46
+ name: chown
47
+ - !ruby/object:RI::MethodSummary
48
+ name: cp
49
+ - !ruby/object:RI::MethodSummary
50
+ name: ctime
51
+ - !ruby/object:RI::MethodSummary
52
+ name: delete
53
+ - !ruby/object:RI::MethodSummary
54
+ name: delete_force
55
+ - !ruby/object:RI::MethodSummary
56
+ name: directory?
57
+ - !ruby/object:RI::MethodSummary
58
+ name: dirname
59
+ - !ruby/object:RI::MethodSummary
60
+ name: exist?
61
+ - !ruby/object:RI::MethodSummary
62
+ name: exists?
63
+ - !ruby/object:RI::MethodSummary
64
+ name: extname
65
+ - !ruby/object:RI::MethodSummary
66
+ name: file?
67
+ - !ruby/object:RI::MethodSummary
68
+ name: fnmatch
69
+ - !ruby/object:RI::MethodSummary
70
+ name: fnmatch?
71
+ - !ruby/object:RI::MethodSummary
72
+ name: grpowned?
73
+ - !ruby/object:RI::MethodSummary
74
+ name: identical?
75
+ - !ruby/object:RI::MethodSummary
76
+ name: inspect
77
+ - !ruby/object:RI::MethodSummary
78
+ name: install
79
+ - !ruby/object:RI::MethodSummary
80
+ name: link
81
+ - !ruby/object:RI::MethodSummary
82
+ name: link_force
83
+ - !ruby/object:RI::MethodSummary
84
+ name: ln
85
+ - !ruby/object:RI::MethodSummary
86
+ name: ln_f
87
+ - !ruby/object:RI::MethodSummary
88
+ name: ln_s
89
+ - !ruby/object:RI::MethodSummary
90
+ name: ln_sf
91
+ - !ruby/object:RI::MethodSummary
92
+ name: mtime
93
+ - !ruby/object:RI::MethodSummary
94
+ name: mv
95
+ - !ruby/object:RI::MethodSummary
96
+ name: owned?
97
+ - !ruby/object:RI::MethodSummary
98
+ name: pipe?
99
+ - !ruby/object:RI::MethodSummary
100
+ name: readable?
101
+ - !ruby/object:RI::MethodSummary
102
+ name: readable_real?
103
+ - !ruby/object:RI::MethodSummary
104
+ name: relative
105
+ - !ruby/object:RI::MethodSummary
106
+ name: rename
107
+ - !ruby/object:RI::MethodSummary
108
+ name: restat
109
+ - !ruby/object:RI::MethodSummary
110
+ name: rm
111
+ - !ruby/object:RI::MethodSummary
112
+ name: rm_f
113
+ - !ruby/object:RI::MethodSummary
114
+ name: setgid?
115
+ - !ruby/object:RI::MethodSummary
116
+ name: setuid?
117
+ - !ruby/object:RI::MethodSummary
118
+ name: size
119
+ - !ruby/object:RI::MethodSummary
120
+ name: size?
121
+ - !ruby/object:RI::MethodSummary
122
+ name: socket?
123
+ - !ruby/object:RI::MethodSummary
124
+ name: split
125
+ - !ruby/object:RI::MethodSummary
126
+ name: stat
127
+ - !ruby/object:RI::MethodSummary
128
+ name: stat!
129
+ - !ruby/object:RI::MethodSummary
130
+ name: sticky?
131
+ - !ruby/object:RI::MethodSummary
132
+ name: symlink
133
+ - !ruby/object:RI::MethodSummary
134
+ name: symlink_force
135
+ - !ruby/object:RI::MethodSummary
136
+ name: to_s
137
+ - !ruby/object:RI::MethodSummary
138
+ name: touch
139
+ - !ruby/object:RI::MethodSummary
140
+ name: unlink
141
+ - !ruby/object:RI::MethodSummary
142
+ name: unlink_force
143
+ - !ruby/object:RI::MethodSummary
144
+ name: util
145
+ - !ruby/object:RI::MethodSummary
146
+ name: utime
147
+ - !ruby/object:RI::MethodSummary
148
+ name: writable?
149
+ - !ruby/object:RI::MethodSummary
150
+ name: writable_real?
151
+ - !ruby/object:RI::MethodSummary
152
+ name: zero?
153
+ name: FileObject
154
+ superclass: Object
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::FileObject#chardev?
7
+ is_singleton: false
8
+ name: chardev?
9
+ params: ()
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::FileObject#chmod
7
+ is_singleton: false
8
+ name: chmod
9
+ params: (mode)
10
+ visibility: public
@@ -0,0 +1,10 @@
1
+ --- !ruby/object:RI::MethodDescription
2
+ aliases: []
3
+
4
+ block_params:
5
+ comment:
6
+ full_name: Folio::FileObject#chown
7
+ is_singleton: false
8
+ name: chown
9
+ params: (user, group)
10
+ visibility: public