Sha256: 7a2cdbe95d5050711a83aafe5974d03e322fd2569d2df376be89c2aa51102507

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 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 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 noop: (node: T) -> void

  def process: () -> NodeMutation::Result

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
node_mutation-1.6.2 sig/node_mutation.rbs
node_mutation-1.6.1 sig/node_mutation.rbs
node_mutation-1.6.0 sig/node_mutation.rbs
node_mutation-1.5.1 sig/node_mutation.rbs
node_mutation-1.5.0 sig/node_mutation.rbs