Skip to content

Commit

Permalink
upgrade picoruby
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Nov 27, 2024
1 parent e90dee0 commit 8492c91
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 10 deletions.
4 changes: 4 additions & 0 deletions _data/sidebars/picoruby_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ entries:
url: "/Kernel.html"
output: web pdf
type: homepage
- title: class Keyboard::IRB
url: "/Keyboard_IRB.html"
output: web pdf
type: homepage
- title: class MML
url: "/MML.html"
output: web pdf
Expand Down
20 changes: 15 additions & 5 deletions pages/rbs_doc/Editor_Base.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,42 @@ Editor::Base.new-> void
### clear

```ruby
instance.clear-> untyped
instance.clear() -> void
```
### clear_buffer

```ruby
instance.clear_buffer-> void
instance.clear_buffer() -> void
```
### debug

```ruby
instance.debug(untyped text) -> Integer?
```
### dump_buffer

```ruby
instance.dump_buffer() -> String
```
### home

```ruby
instance.home-> untyped
instance.home() -> void
```
### next_head

```ruby
instance.next_head-> untyped
instance.next_head() -> void
```
### physical_line_count

```ruby
instance.physical_line_count-> Integer
instance.physical_line_count() -> Integer
```
### put_buffer

```ruby
instance.put_buffer(String | Symbol chr) -> void
```
### system

Expand Down
2 changes: 1 addition & 1 deletion pages/rbs_doc/IO.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ IO.get_cursor_position-> ([Integer, Integer])
### wait_terminal

```ruby
IO.wait_terminal(?timeout: Integer|Float|nil) -> bool
IO.wait_terminal(?timeout: Integer|Float) -> String
```
## Instance methods
### cooked
Expand Down
7 changes: 6 additions & 1 deletion pages/rbs_doc/Keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Keyboard.reload_keymap() -> void
### restart

```ruby
Keyboard.restart() -> void
Keyboard.restart() -> bool
```
### wait_keymap

Expand Down Expand Up @@ -317,6 +317,11 @@ instance.start!-> void
```ruby
instance.start_features-> void
```
### toggle_ruby_mode

```ruby
instance.toggle_ruby_mode() -> bool
```
### uart_anchor

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

```ruby
Keyboard::IRB.new(Keyboard) -> instance
```
## Instance methods
### task

```ruby
instance.task(Integer modifier, Integer keycode) -> void
```
### toggle

```ruby
instance.toggle() -> bool
```
12 changes: 11 additions & 1 deletion pages/rbs_doc/Machine.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ Machine.read_memory(Integer address, Integer size) -> String
### sleep

```ruby
Machine.sleep(Integer sec) -> Integer
Machine.sleep(Integer | Float sec) -> Integer
```
### tud_mounted?

```ruby
Machine.tud_mounted?() -> bool
```
### tud_task

```ruby
Machine.tud_task() -> void
```
### unique_id

Expand Down
5 changes: 5 additions & 0 deletions pages/rbs_doc/Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ instance.raise(string message) -> bot
instance.raise(Exception exception, ?String cause) -> bot
instance.raise(_Exception exception, ?String cause) -> bot
```
### relinquish

```ruby
instance.relinquish-> bool
```
### sleep

```ruby
Expand Down
4 changes: 2 additions & 2 deletions pages/rbs_doc/Sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ folder: rbs_doc
### new

```ruby
Sandbox.new(?bool suppress_error) -> instance
Sandbox.new(?String name) -> instance
```
## Instance methods
### compile
Expand Down Expand Up @@ -52,7 +52,7 @@ instance.interrupt() -> void
### load_file

```ruby
instance.load_file(String path, ?signal: bool) -> void
instance.load_file(String path, ?signal: bool, ?join: bool) -> void
```
### result

Expand Down
5 changes: 5 additions & 0 deletions pages/rbs_doc/YAML.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ YAML.dump(Object) -> String
```ruby
YAML.load(String) -> Object
```
### load_file

```ruby
YAML.load_file(String) -> Object
```

0 comments on commit 8492c91

Please sign in to comment.