Sha256: ebf568d5ea61863a1cb1f34a4d5618f999cf804df825fa837949c881b0c58488

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

Contents

module NodeMutation[T]
  VERSION: Stringo

  class MethodNotSupported < StandardError
  end

  class ConflictActionError < StandardError
  end

  KEEP_RUNNING: Integer

  THROW_ERROR: Integer

  attr_reader actions: Array[NodeMutation::Action]

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

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

  def self.strategry: () -> Integer

  def initialize: (source: String) -> NodeMutation

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

  def delete: (node: T, *selectors: Array[String], **options: { and_comma: bool }) -> void

  def insert: (node: T, code: String, ?at: "beginning" | "end", ?to: nil | String) -> void

  def insert_after: (node: T, code: 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, with: String) -> void

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
node_mutation-1.3.2 sig/node_mutation.rbs
node_mutation-1.3.1 sig/node_mutation.rbs
node_mutation-1.3.0 sig/node_mutation.rbs
node_mutation-1.2.1 sig/node_mutation.rbs
node_mutation-1.2.0 sig/node_mutation.rbs