sig/node_mutation.rbs in node_mutation-1.15.1 vs sig/node_mutation.rbs in node_mutation-1.15.2
- old
+ new
@@ -21,20 +21,22 @@
def append: (node: T, code: String) -> void
def delete: (node: T, *selectors: Array[String], **options: { and_comma: bool }) -> void
+ def indent: (node: T, ?tab_size: Integer) -> void
+
def insert: (node: T, code: String, ?at: "beginning" | "end", ?to: nil | String) -> void
def prepend: (node: T, code: String) -> void
def remove: (node: T, **options: { and_comma: bool }) -> void
def replace: (node: T, *selectors: Array[String], with: String) -> void
def replace_with: (node: T, code: String) -> void
- def wrap: (node: T, prefix: String, suffix: String, newline: bool) -> void
+ def wrap: (node: T, prefix: String, suffix: String, ?newline: bool) -> void
def noop: (node: T) -> void
def process: () -> NodeMutation::Result