Sha256: 4050020d37c4c2248b94077760609206f8321e428d1b5cf6f0fcfce93f298d3f

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

module NodeMutation[T]
  VERSION: String

  class MethodNotSupported < StandardError
  end

  class ConflictActionError < StandardError
  end

  attr_reader actions: Array[NodeMutation::Action]

  def self.configure: (options: { adapter: NodeMutation::Adapter, strategy: Integer, tab_width: Integer }) -> void

  def self.adapter: () -> NodeMutation::Adapter

  def self.strategy: () -> Integer

  def self.tab_width: () -> Integer

  def initialize: (source: String) -> NodeMutation

  def append: (node: T, code: String) -> void

  def delete: (node: T, selectors: Array[String], 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, 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 noop: (node: T) -> void

  def process: () -> NodeMutation::Result

  def test: () -> NodeMutation::Result
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
node_mutation-1.19.4 sig/node_mutation.rbs
node_mutation-1.19.3 sig/node_mutation.rbs
node_mutation-1.19.2 sig/node_mutation.rbs
node_mutation-1.19.1 sig/node_mutation.rbs
node_mutation-1.19.0 sig/node_mutation.rbs
node_mutation-1.18.3 sig/node_mutation.rbs