Class: Astel::Rewriter::Edit

Inherits:
Data
  • Object
show all
Defined in:
lib/astel/rewriter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_offsetObject (readonly)

Returns the value of attribute end_offset

Returns:

  • (Object)

    the current value of end_offset



16
17
18
# File 'lib/astel/rewriter.rb', line 16

def end_offset
  @end_offset
end

#replacementObject (readonly)

Returns the value of attribute replacement

Returns:

  • (Object)

    the current value of replacement



16
17
18
# File 'lib/astel/rewriter.rb', line 16

def replacement
  @replacement
end

#sequenceObject (readonly)

Returns the value of attribute sequence

Returns:

  • (Object)

    the current value of sequence



16
17
18
# File 'lib/astel/rewriter.rb', line 16

def sequence
  @sequence
end

#start_offsetObject (readonly)

Returns the value of attribute start_offset

Returns:

  • (Object)

    the current value of start_offset



16
17
18
# File 'lib/astel/rewriter.rb', line 16

def start_offset
  @start_offset
end

Instance Method Details

#insertion?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/astel/rewriter.rb', line 17

def insertion?
  start_offset == end_offset
end