-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
317 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
``` |
Oops, something went wrong.