From 6bdfc3b9e93a074a5180525483b6060f062b6724 Mon Sep 17 00:00:00 2001 From: benklop Date: Wed, 15 Nov 2023 04:21:57 -0700 Subject: [PATCH] correct perfect_toml.rbs syntax (#2) * correct perfect_toml.rbs syntax I was getting parsing errors when SolarGraph tried to open this RBS file. --- sig/perfect_toml.rbs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sig/perfect_toml.rbs b/sig/perfect_toml.rbs index be3c9b9..191ac41 100644 --- a/sig/perfect_toml.rbs +++ b/sig/perfect_toml.rbs @@ -4,9 +4,9 @@ module PerfectTOML def self.parse: (String toml_src, symbolize_names: bool) -> untyped def self.load_file: (String filename, symbolize_names: bool) -> untyped | (IO io, symbolize_names: bool) -> untyped - def self.generate: ( - def self.save_file: (String filename, untyped data, sort_keys: boolean, use_literal_string: boolean, use_multiline_string: boolean, use_dot: boolean) -> String) -> void - | (IO io, untyped data, sort_keys: boolean, use_literal_string: boolean, use_multiline_string: boolean, use_dot: boolean) -> String) -> void + def self.generate: (untyped data, sort_keys: boolean, use_literal_string: boolean, use_multiline_string: boolean, use_dot: boolean) -> String + def self.save_file: (String filename, untyped data, sort_keys: boolean, use_literal_string: boolean, use_multiline_string: boolean, use_dot: boolean) -> void + | (IO io, untyped data, sort_keys: boolean, use_literal_string: boolean, use_multiline_string: boolean, use_dot: boolean) -> void class LocalDateTime def initialize: (untyped year, untyped month, untyped day, untyped hour, untyped min, untyped sec) -> void