Sha256: 052e70f6c013db43fbd8b80dcad6660c8477027bcd0a6aa92ab1cc6f8c293a77

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 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: (file_path: 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_erb_stmt_with_expr: (node: T) -> void

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

  def wrap: (node: T, with: String) -> void

  def process: () -> void
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
node_mutation-1.1.0 sig/node_mutation.rbs