Class: FFI::Clang::Lib::TokensPointer
- Inherits:
-
Pointer
- Object
- Pointer
- FFI::Clang::Lib::TokensPointer
- Defined in:
- lib/ffi/clang/lib/token.rb
Instance Attribute Summary collapse
-
#token_size ⇒ Object
readonly
Returns the value of attribute token_size.
-
#translation_unit ⇒ Object
readonly
Returns the value of attribute translation_unit.
Instance Method Summary collapse
-
#initialize(ptr, token_size, translation_unit) ⇒ TokensPointer
constructor
A new instance of TokensPointer.
Constructor Details
#initialize(ptr, token_size, translation_unit) ⇒ TokensPointer
Returns a new instance of TokensPointer.
20 21 22 23 24 |
# File 'lib/ffi/clang/lib/token.rb', line 20 def initialize(ptr, token_size, translation_unit) super ptr @token_size = token_size @translation_unit = translation_unit end |
Instance Attribute Details
#token_size ⇒ Object (readonly)
Returns the value of attribute token_size.
18 19 20 |
# File 'lib/ffi/clang/lib/token.rb', line 18 def token_size @token_size end |
#translation_unit ⇒ Object (readonly)
Returns the value of attribute translation_unit.
19 20 21 |
# File 'lib/ffi/clang/lib/token.rb', line 19 def translation_unit @translation_unit end |