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.
101 102 103 |
# File 'lib/ffi/clang/code_completion.rb', line 101 def initialize(result) @result = result end |
Instance Method Details
#inspect ⇒ Object
113 114 115 |
# File 'lib/ffi/clang/code_completion.rb', line 113 def inspect "<#{kind.inspect} = #{string.inspect}>" end |
#kind ⇒ Object
105 106 107 |
# File 'lib/ffi/clang/code_completion.rb', line 105 def kind @result[:kind] end |
#string ⇒ Object
109 110 111 |
# File 'lib/ffi/clang/code_completion.rb', line 109 def string CodeCompletion::String.new @result[:string] end |