Class: FFI::Clang::CodeCompletion::Result

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

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ Result

Returns a new instance of Result.



101
102
103
# File 'lib/ffi/clang/code_completion.rb', line 101

def initialize(result)
	@result = result
end

Instance Method Details

#inspectObject



113
114
115
# File 'lib/ffi/clang/code_completion.rb', line 113

def inspect
	"<#{kind.inspect} = #{string.inspect}>"
end

#kindObject



105
106
107
# File 'lib/ffi/clang/code_completion.rb', line 105

def kind
	@result[:kind]
end

#stringObject



109
110
111
# File 'lib/ffi/clang/code_completion.rb', line 109

def string
	CodeCompletion::String.new @result[:string]
end