sig/node_mutation.rbs in node_mutation-1.1.0 vs sig/node_mutation.rbs in node_mutation-1.2.0
- old
+ new
@@ -17,11 +17,11 @@
def self.adapter: () -> NodeMutation::Adapter
def self.strategry: () -> Integer
- def initialize: (file_path: String) -> NodeMutation
+ def initialize: (source: String) -> NodeMutation
def append: (node: T, code: String) -> void
def delete: (node: T, *selectors: Array[String], **options: { and_comma: bool }) -> void
@@ -33,13 +33,11 @@
def remove: (node: T, **options: { and_comma: bool }) -> void
def replace: (node: T, *selectors: Array[String], with: String) -> void
- def replace_erb_stmt_with_expr: (node: T) -> void
-
def replace_with: (node: T, code: String) -> void
def wrap: (node: T, with: String) -> void
- def process: () -> void
+ def process: () -> NodeMutation::Result
end