module

BitShares::Utility

Instance methods

delay(seconds : Int | Time::Span, &blk)

延迟执行代码

Source
iterate_oid_string(obj)

迭代 json 或者 hash 对象中的所有 oid 字符串。

Source
now_ts

获取当前时间戳

Source
parse_time_string(time_string : String)

解析石墨烯API返回的日期字符串

Source
parse_time_string_i64(time_string : String)

解析石墨烯API返回的日期字符串

Source
scan_all_files(rootdir, suffix_filter : Regex)

遍历目录下所有文件,支持正则匹配。返回文件相对路径列表。

Source
scan_dir(rootdir, &blk : String, String -> _)

遍历目录树

Source