Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Nov 4, 2024
1 parent 7ca7c81 commit 304a4e2
Show file tree
Hide file tree
Showing 13 changed files with 317 additions and 5 deletions.
28 changes: 28 additions & 0 deletions _data/sidebars/picoruby_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,18 @@ entries:
url: "/Base64.html"
output: web pdf
type: homepage
- title: class Data
url: "/Data.html"
output: web pdf
type: homepage
- title: class Dir
url: "/Dir.html"
output: web pdf
type: homepage
- title: class ENVClass
url: "/ENVClass.html"
output: web pdf
type: homepage
- title: class EOFError
url: "/EOFError.html"
output: web pdf
Expand Down Expand Up @@ -518,6 +526,22 @@ entries:
url: "/PicoRubyVM_InstructionSequence.html"
output: web pdf
type: homepage
- title: module Picotest
url: "/Picotest.html"
output: web pdf
type: homepage
- title: class Picotest::Double
url: "/Picotest_Double.html"
output: web pdf
type: homepage
- title: class Picotest::Runner
url: "/Picotest_Runner.html"
output: web pdf
type: homepage
- title: class Picotest::Test
url: "/Picotest_Test.html"
output: web pdf
type: homepage
- title: class Prism
url: "/Prism.html"
output: web pdf
Expand All @@ -534,6 +558,10 @@ entries:
url: "/RNG.html"
output: web pdf
type: homepage
- title: module RbConfig
url: "/RbConfig.html"
output: web pdf
type: homepage
- title: class SQLite3
url: "/SQLite3.html"
output: web pdf
Expand Down
10 changes: 10 additions & 0 deletions pages/rbs_doc/Array.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ instance.pop(int n) -> ::Array[Elem]
```ruby
instance.push(*Elem obj) -> self
```
### reject

```ruby
instance.reject() { (Elem item) -> boolish } -> ::Array[Elem]
```
### reject!

```ruby
instance.reject!() { (Elem item) -> boolish } -> self
```
### shift

```ruby
Expand Down
36 changes: 36 additions & 0 deletions pages/rbs_doc/Data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: class Data
keywords: Data
tags: [class]
summary: Data class of PicoRuby
sidebar: picoruby_sidebar
permalink: Data.html
folder: rbs_doc
---
## Singleton methods
### define

```ruby
Data.define(*Symbol args) -> Data
```
### members

```ruby
Data.members() -> Array[Symbol]
```
### new

```ruby
Data.new(*untyped args) -> instance
```
## Instance methods
### members

```ruby
instance.members() -> Array[Symbol]
```
### to_h

```ruby
instance.to_h() -> Hash[Symbol, untyped]
```
26 changes: 26 additions & 0 deletions pages/rbs_doc/ENVClass.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: class ENVClass
keywords: ENVClass
tags: [class]
summary: ENVClass class of PicoRuby
sidebar: picoruby_sidebar
permalink: ENVClass.html
folder: rbs_doc
---
## Singleton methods
### new

```ruby
ENVClass.new() -> ENVClass
```
## Instance methods
### []

```ruby
instance.[](String) -> String
```
### []=

```ruby
instance.[]=(String, String) -> String
```
5 changes: 5 additions & 0 deletions pages/rbs_doc/File.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ File.chmod(Integer mode, *string) -> Integer
```ruby
File.directory?(string) -> bool
```
### dirname

```ruby
File.dirname(String filename) -> String
```
### exist?

```ruby
Expand Down
6 changes: 6 additions & 0 deletions pages/rbs_doc/Kernel.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ instance.printf(String fmt, *untyped args) -> nil
```ruby
instance.puts(*_ToS objects) -> nil
```
## Instance methods (picoruby-metaprog)
### caller

```ruby
instance.caller(?Integer start, ?Integer length) -> Array[String]
```
## Instance methods
### system

Expand Down
24 changes: 21 additions & 3 deletions pages/rbs_doc/Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,30 @@ sidebar: picoruby_sidebar
permalink: Object.html
folder: rbs_doc
---
## Include
[Kernel](Kernel.html)
## Singleton methods (picoruby-metaprog)
### ancestors

```ruby
Object.ancestors() -> Array[Class]
```
## Instance methods (picoruby-metaprog)
### __id__

```ruby
instance.__id__() -> Integer
```
### class?

```ruby
instance.class?() -> bool
```
### const_get

```ruby
instance.const_get(Symbol name) -> untyped
```
### instance_of?

```ruby
Expand All @@ -21,12 +39,12 @@ instance.instance_of?(Class klass) -> bool
### instance_variable_get

```ruby
instance.instance_variable_get(Symbol name) -> Object
instance.instance_variable_get(Symbol name) -> untyped
```
### instance_variable_set

```ruby
instance.instance_variable_set(Symbol name, Object value) -> Object
instance.instance_variable_set(Symbol name, untyped value) -> untyped
```
### instance_variables

Expand All @@ -46,7 +64,7 @@ instance.respond_to?(Symbol | String name) -> bool
### send

```ruby
instance.send(Symbol | String name, *Object args) -> Object
instance.send(Symbol | String name, *untyped args) -> untyped
```
## Instance methods (picoruby-require)
### load
Expand Down
19 changes: 19 additions & 0 deletions pages/rbs_doc/Picotest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: module Picotest
keywords: Picotest
tags: [module]
summary: Picotest module of PicoRuby
sidebar: picoruby_sidebar
permalink: Picotest.html
folder: rbs_doc
---
## Type aliases
### picotest_error_t
```ruby
{
"success_count" => Integer,
"failures" => Array[Hash[untyped, untyped]],
"exceptions" => Array[Hash[untyped, untyped]],
"crashes" => Array[String]
}
```
52 changes: 52 additions & 0 deletions pages/rbs_doc/Picotest_Double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
title: class Picotest::Double
keywords: Picotest::Double
tags: [class]
summary: Picotest::Double class of PicoRuby
sidebar: picoruby_sidebar
permalink: Picotest_Double.html
folder: rbs_doc
---
## Type aliases
### type_t
```ruby
:stub | :mock | :any_instance_of
```
### double_data_t
```ruby
{
type: type_t,
any_instance_of: bool,
doubled_obj_id: Integer,
method_id: Symbol?,
return_value: untyped,
singleton_class_name: String?,
?expected_count: Integer,
?actual_count: Integer
}
```
## Singleton methods
### _init

```ruby
Picotest::Double._init(type_t type, untyped untyped, ?any_instance_of: bool) -> Double
```
## Instance methods
### remove_singleton

```ruby
instance.remove_singleton() -> nil
```
## Attr accessors
### double_data (accessor)
```ruby
instance.double_data -> double_data_t
```
### doubled_obj (accessor)
```ruby
instance.doubled_obj -> untyped
```
### singleton_class_name (accessor)
```ruby
instance.singleton_class_name -> String
```
21 changes: 21 additions & 0 deletions pages/rbs_doc/Picotest_Runner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: class Picotest::Runner
keywords: Picotest::Runner
tags: [class]
summary: Picotest::Runner class of PicoRuby
sidebar: picoruby_sidebar
permalink: Picotest_Runner.html
folder: rbs_doc
---
## Singleton methods
### new

```ruby
Picotest::Runner.new(String dir, ?(String | nil) filter, ?String tmpdir) -> void
```
## Instance methods
### run

```ruby
instance.run() -> void
```
71 changes: 71 additions & 0 deletions pages/rbs_doc/Picotest_Test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: class Picotest::Test
keywords: Picotest::Test
tags: [class]
summary: Picotest::Test class of PicoRuby
sidebar: picoruby_sidebar
permalink: Picotest_Test.html
folder: rbs_doc
---
## Singleton methods
### description

```ruby
Picotest::Test.description(String description) -> void
```
## Instance methods
### assert

```ruby
instance.assert(bool result) -> void
```
### assert_delta

```ruby
instance.assert_delta(Integer | Float expected, Integer | Float actual, ?Float delta) -> void
```
### assert_equal

```ruby
instance.assert_equal(untyped expected, untyped actual) -> void
```
### assert_false

```ruby
instance.assert_false(bool result) -> void
```
### assert_nil

```ruby
instance.assert_nil(untyped obj) -> void
```
### assert_not_equal

```ruby
instance.assert_not_equal(untyped expected, untyped actual) -> void
```
### assert_raise

```ruby
instance.assert_raise(*(Class | String) exceptions_and_message) { () -> void } -> void
```
### assert_true

```ruby
instance.assert_true(bool result) -> void
```
### list_tests

```ruby
instance.list_tests() -> Array[Symbol]
```
### setup

```ruby
instance.setup() -> void
```
### teardown

```ruby
instance.teardown() -> void
```
15 changes: 15 additions & 0 deletions pages/rbs_doc/RbConfig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: module RbConfig
keywords: RbConfig
tags: [module]
summary: RbConfig module of PicoRuby
sidebar: picoruby_sidebar
permalink: RbConfig.html
folder: rbs_doc
---
## Singleton methods (picoruby-metaprog)
### ruby

```ruby
RbConfig.ruby() -> (String | nil)
```
Loading

0 comments on commit 304a4e2

Please sign in to comment.