Class: FFI::Clang::CodeCompletion::FixIt

Inherits:
Object
  • Object
show all
Defined in:
lib/ffi/clang/code_completion.rb

Overview

Represents a fix-it that must be applied before a completion can be inserted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, range) ⇒ FixIt

Initialize a fix-it.



206
207
208
209
# File 'lib/ffi/clang/code_completion.rb', line 206

def initialize(text, range)
	@text = text
	@range = range
end

Instance Attribute Details

#rangeObject (readonly)

Returns the value of attribute range.



201
# File 'lib/ffi/clang/code_completion.rb', line 201

attr_reader :text, :range

#textObject (readonly)



201
202
203
# File 'lib/ffi/clang/code_completion.rb', line 201

def text
  @text
end