From c1bf53627c894e4068aca5576d054803bc574a86 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 8 Mar 2020 13:37:56 +0100 Subject: more changes for ldoc --- core/scope.moon | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'core/scope.moon') diff --git a/core/scope.moon b/core/scope.moon index c61a446..a7373c4 100644 --- a/core/scope.moon +++ b/core/scope.moon @@ -6,8 +6,8 @@ import Value from require 'core.value' import Result from require 'core.result' class Scope ---- methods --- @section methods +--- members +-- @section members --- create an instance. -- @@ -19,7 +19,7 @@ class Scope --- set a Lua value in the scope. -- - -- wraps `val` in a `Value` and `Result` before calling `\set`. + -- wraps `val` in a `Value` and `Result` before calling `set`. -- -- @tparam string key -- @tparam any val @@ -72,21 +72,6 @@ class Scope for k, v in pairs other.values @values[k] = v ---- static functions --- @section static - - --- converts a Lua table to a Scope. - -- - -- `tbl` may contain more tables (or `Scope`s). - -- Uses `Value``.wrap` on the values recursively. - -- - -- @tparam table tbl the table to convert - -- @treturn Scope - from_table: (tbl) -> - with Scope! - for k, v in pairs tbl - \set_raw k, v - __tostring: => buf = " + with Scope! + for k, v in pairs tbl + \set_raw k, v + { :Scope } -- cgit v1.2.3