← 都来码 / Dolaima← 例程索引ruby/test/sysinfo.rb原文

ruby/test/sysinfo.rb · 960 字节 · 下载原文

# sysinfo.rb —— 全能接口 CALLJSON(#573) 自检:调用 sysinfo 并把返回的 JSON 整份打出来。

# sysinfo.rb — the all-purpose CALLJSON(#573) interface self-check: call sysinfo and print the whole returned JSON.


# UI 库的显式引用(用户 2026-10-01 定的口径,见 docs/UI库导入约定.md)。

# Explicit reference to the UI library (rule set by the user on 2026-10-01; see the UI-library import convention doc under docs).

# 声明文件 Lib/ruby/vml_ui.rb 由 GenLib 生成、不要手改:

#     dotnet run --project tools/GenLib -- -u -c vmlui -l ruby -o Lib/ruby/vml_ui.rb

# ⚠ 实测:本条是**文档级**引用 —— 删掉它示例照样编得过、跑得对(Ruby 按名字解析)。

# ⚠ Measured: this line is a **documentation-level** reference — delete it and the example still compiles and runs (Ruby resolves by name).

require 'vml_ui'

ui_call_json_s("sysinfo", "")
ui_call_json_print()