Class: FFI::Clang::CodeCompletion::Result
- Inherits:
-
Object
- Object
- FFI::Clang::CodeCompletion::Result
- Defined in:
- lib/ffi/clang/code_completion.rb
Instance Method Summary collapse
-
#initialize(result) ⇒ Result
constructor
A new instance of Result.
- #inspect ⇒ Object
- #kind ⇒ Object
- #string ⇒ Object
Constructor Details
#initialize(result) ⇒ Result
Returns a new instance of Result.
113 114 115 |
# File 'lib/ffi/clang/code_completion.rb', line 113 def initialize(result) @result = result end |
Instance Method Details
#inspect ⇒ Object
125 126 127 |
# File 'lib/ffi/clang/code_completion.rb', line 125 def inspect "<#{kind.inspect} = #{string.inspect}>" end |
#kind ⇒ Object
117 118 119 |
# File 'lib/ffi/clang/code_completion.rb', line 117 def kind @result[:kind] end |
#string ⇒ Object
121 122 123 |
# File 'lib/ffi/clang/code_completion.rb', line 121 def string CodeCompletion::String.new @result[:string] end |