Skip to content
Browse files

regen docs

  • Loading branch information...
1 parent bf6abae commit 3f8bfad720fc6ae1d549187fc7befb2d4bed7f11 @tokuhirom committed Apr 10, 2012
View
3 docs/source/object/bytes.rst
@@ -17,3 +17,6 @@ Example:
Get a substring from bytes.
+$bytes.decode(Str $type="utf-8") : Undef
+
+
View
10 docs/source/object/class.rst
@@ -0,0 +1,10 @@
+class Class
+============
+
+This is a Class class.
+
+
+$meta.name() : String
+Get a name of class.
+
+
View
10 docs/source/object/dir.rst
@@ -18,6 +18,16 @@ Close directory.
Normally, you don't need to close directory by hand since the destructor closes directory automtically.
+Dir.mkdir(Str $name[, Int $mode]) : Undef
+Create directory named $name. Default mode value is 0777.
+This method may throws ErrnoException if it's failed.
+
+
+Dir.rmdir(Str $name) : Undef
+Remove $name directory.
+This method may throws ErrnoException if it's failed.
+
+
$dir.DESTROY() : undef
This is a destructor, closes directory automatically.
View
16 docs/source/object/file.rst
@@ -39,3 +39,19 @@ Get a character from $file.
If EOF reached, returns undef.
+$file.seek(Int offset, Int $whence) : Undef
+Seek a file pointer position from $file.
+$whence must be one of File.SEEK_CUR, File.SEEK_END, File.SEEK_SET.
+maybe throw ErrnoException.
+
+
+$file.tell() : Int
+Get a file pointer position from $file.
+maybe throw ErrnoException.
+
+
+$file.sync() : Undef
+Syncs buffers and file.
+On win32, this method is not implementede yet.
+
+
View
6 docs/source/object/file_package.rst
@@ -0,0 +1,6 @@
+class FilePackage
+==================
+
+This is a FilePackage class.
+
+
View
5 docs/source/object/internals.rst
@@ -23,8 +23,3 @@ Internals.dump_symbol_table() : Undef
Dump symbol table to stdout.
-Internals.package_map() : Undef
-
-Dump package map to stdout.
-
-
View
4 docs/source/object/metaclass.rst
@@ -25,3 +25,7 @@ This method returns superclass in string.
If the class does not have a superclass, it returns undef.
+$meta.bless(Any $data) : Object
+Create new instance with $data.
+
+
View
4 docs/source/object/object.rst
@@ -17,3 +17,7 @@ $object.isa($target) : Boolean
This method returns true if $object is-a $target, false otherwise.
+$object.bless(Any $data) : Object
+Create new instance with $data.
+
+
View
18 docs/source/object/str.rst
@@ -33,10 +33,26 @@ $string.scan(Regexp $pattern) : Array[String]
Scan the strings by regular expression.
-$string.split(Regexp $pattern) : Array[String]
+$string.split(Regexp $pattern[, Int $limit]) : Array[String]
Examples:
"foo".split(//) # => qw(f o o)
"a\nb\nc".split(/\n/) # => qw(a b c)
Split a string by regexp.
+$string.index(Str pattern) : Int
+$string.index(Str pattern, Int $position) : Int
+
+
+$string.upper() : Str
+Return a copy of s, but with upper case letters converted to upper case.
+
+
+$string.lower() : Str
+Return a copy of s, but with upper case letters converted to lower case.
+
+
+$str.encode(Str $encoding='utf-8') : Bytes
+Encode a string to bytes.
+
+

0 comments on commit 3f8bfad

Please sign in to comment.
Something went wrong with that request. Please try again.