Sha256: e8ac4b458b21d23ae5595098c3d6ff4ebea640950df6e32902d12db3aa4208f5

Contents?: true

Size: 1.14 KB

Versions: 8

Compression:

Stored size: 1.14 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, 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], **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

8 entries across 8 versions & 1 rubygems

Version Path
node_mutation-1.12.0 sig/node_mutation.rbs
node_mutation-1.11.0 sig/node_mutation.rbs
node_mutation-1.10.1 sig/node_mutation.rbs
node_mutation-1.10.0 sig/node_mutation.rbs
node_mutation-1.9.3 sig/node_mutation.rbs
node_mutation-1.9.2 sig/node_mutation.rbs
node_mutation-1.9.1 sig/node_mutation.rbs
node_mutation-1.9.0 sig/node_mutation.rbs