diff options
Diffstat (limited to 'stdlib/source/library/lux/target/ruby.lux')
-rw-r--r-- | stdlib/source/library/lux/target/ruby.lux | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/stdlib/source/library/lux/target/ruby.lux b/stdlib/source/library/lux/target/ruby.lux index 497cae831..7f6b66c74 100644 --- a/stdlib/source/library/lux/target/ruby.lux +++ b/stdlib/source/library/lux/target/ruby.lux @@ -192,7 +192,7 @@ (def: #export (array_range from to array) (-> Expression Expression Expression Computation) (|> (format (:representation from) ".." (:representation to)) - (text.enclose ["[" "]"]) + (text.enclosed ["[" "]"]) (format (:representation array)) :abstraction)) @@ -200,7 +200,7 @@ (-> (List Expression) Literal) (|>> (list\map (|>> :representation)) (text.join_with ..input_separator) - (text.enclose ["[" "]"]) + (text.enclosed ["[" "]"]) :abstraction)) (def: #export hash @@ -208,7 +208,7 @@ (|>> (list\map (.function (_ [k v]) (format (:representation k) " => " (:representation v)))) (text.join_with ..input_separator) - (text.enclose ["{" "}"]) + (text.enclosed ["{" "}"]) :abstraction)) (def: #export (apply/* args func) @@ -216,7 +216,7 @@ (|> args (list\map (|>> :representation)) (text.join_with ..input_separator) - (text.enclose ["(" ")"]) + (text.enclosed ["(" ")"]) (format (:representation func)) :abstraction)) @@ -225,7 +225,7 @@ (|> args (list\map (|>> :representation)) (text.join_with ..input_separator) - (text.enclose ["[" "]"]) + (text.enclosed ["[" "]"]) (format (:representation lambda)) :abstraction)) @@ -236,7 +236,7 @@ (def: #export (nth idx array) (-> Expression Expression Access) (|> (:representation idx) - (text.enclose ["[" "]"]) + (text.enclosed ["[" "]"]) (format (:representation array)) :abstraction)) @@ -245,7 +245,7 @@ (|> (format (:representation test) " ? " (:representation then) " : " (:representation else)) - (text.enclose ["(" ")"]) + (text.enclosed ["(" ")"]) :abstraction)) (def: #export statement @@ -356,7 +356,7 @@ (|> args (list\map (|>> :representation)) (text.join_with ..input_separator) - (text.enclose ["(" ")"])) + (text.enclosed ["(" ")"])) (..nest (:representation body!))))) (def: #export (lambda name args body!) @@ -364,9 +364,9 @@ (let [proc (|> (format (|> args (list\map (|>> :representation)) (text.join_with ..input_separator) - (text.enclose' "|")) + (text.enclosed' "|")) (..nest (:representation body!))) - (text.enclose ["{" "}"]) + (text.enclosed ["{" "}"]) (format "lambda "))] (|> (case name #.None @@ -374,7 +374,7 @@ (#.Some name) (format (:representation name) " = " proc)) - (text.enclose ["(" ")"]) + (text.enclosed ["(" ")"]) :abstraction))) (template [<op> <name>] |