sig/node_mutation.rbs in node_mutation-1.19.4 vs sig/node_mutation.rbs in node_mutation-1.20.0
- old
+ new
@@ -1,6 +1,6 @@
-module NodeMutation[T]
+class NodeMutation[T]
VERSION: String
class MethodNotSupported < StandardError
end
@@ -36,9 +36,11 @@
def replace_with: (node: T, code: String) -> void
def wrap: (node: T, prefix: String, suffix: String, ?newline: bool) -> void
def noop: (node: T) -> void
+
+ def combine: () { () -> void } -> void
def process: () -> NodeMutation::Result
def test: () -> NodeMutation::Result
end