Class: Bullematic::AST::Rewriter::Modification

Inherits:
Struct
  • Object
show all
Defined in:
lib/bullematic/ast/rewriter.rb,
sig/generated/bullematic/ast/rewriter.rbs

Overview

RBS:

  • type modification = { type: Symbol, offset: Integer, byte_length: Integer, new_text: String, associations: Array[Symbol] }

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#associationsObject

Returns the value of attribute associations

Returns:

  • (Object)

    the current value of associations



10
11
12
# File 'lib/bullematic/ast/rewriter.rb', line 10

def associations
  @associations
end

#byte_lengthObject

Returns the value of attribute byte_length

Returns:

  • (Object)

    the current value of byte_length



10
11
12
# File 'lib/bullematic/ast/rewriter.rb', line 10

def byte_length
  @byte_length
end

#new_textObject

Returns the value of attribute new_text

Returns:

  • (Object)

    the current value of new_text



10
11
12
# File 'lib/bullematic/ast/rewriter.rb', line 10

def new_text
  @new_text
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



10
11
12
# File 'lib/bullematic/ast/rewriter.rb', line 10

def offset
  @offset
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



10
11
12
# File 'lib/bullematic/ast/rewriter.rb', line 10

def type
  @type
end

Class Method Details

.new(type:, offset:, byte_length:, new_text:, associations:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(type:, offset:, byte_length:, new_text:, associations:) ⇒ instance

    Parameters:

    • type: (Object)
    • offset: (Object)
    • byte_length: (Object)
    • new_text: (Object)
    • associations: (Object)

    Returns:

    • (instance)
  • .new(arg0) ⇒ instance

    Parameters:

    • arg0 ({ ?type: untyped, ?offset: untyped, ?byte_length: untyped, ?new_text: untyped, ?associations: untyped })

    Returns:

    • (instance)


19
20
# File 'sig/generated/bullematic/ast/rewriter.rbs', line 19

def self.new: (?type: untyped, ?offset: untyped, ?byte_length: untyped, ?new_text: untyped, ?associations: untyped) -> instance
| ({ ?type: untyped, ?offset: untyped, ?byte_length: untyped, ?new_text: untyped, ?associations: untyped }) -> instance