sig/node_mutation.rbs in node_mutation-1.0.0 vs sig/node_mutation.rbs in node_mutation-1.1.0
- old
+ new
@@ -5,11 +5,11 @@
end
class ConflictActionError < StandardError
end
- KEEPING_RUNNING: Integer
+ KEEP_RUNNING: Integer
THROW_ERROR: Integer
attr_reader actions: Array[NodeMutation::Action]
@@ -17,11 +17,11 @@
def self.adapter: () -> NodeMutation::Adapter
def self.strategry: () -> Integer
- def initialize: (file_path: String, source: String) -> NodeMutation
+ def initialize: (file_path: String) -> NodeMutation
def append: (node: T, code: String) -> void
def delete: (node: T, *selectors: Array[String], **options: { and_comma: bool }) -> void
@@ -32,9 +32,11 @@
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_erb_stmt_with_expr: (node: T) -> void
def replace_with: (node: T, code: String) -> void
def wrap: (node: T, with: String) -> void