Class: FFI::Clang::Lib::CXVersion
- Inherits:
-
Struct
- Object
- Struct
- FFI::Clang::Lib::CXVersion
- Defined in:
- lib/ffi/clang/lib/cursor.rb
Instance Method Summary collapse
Instance Method Details
#major ⇒ Object
350 351 352 |
# File 'lib/ffi/clang/lib/cursor.rb', line 350 def major self[:major] end |
#minor ⇒ Object
354 355 356 |
# File 'lib/ffi/clang/lib/cursor.rb', line 354 def minor self[:minor] end |
#subminor ⇒ Object
358 359 360 |
# File 'lib/ffi/clang/lib/cursor.rb', line 358 def subminor self[:subminor] end |
#to_s ⇒ Object
366 367 368 |
# File 'lib/ffi/clang/lib/cursor.rb', line 366 def to_s version_string end |
#version_string ⇒ Object
362 363 364 |
# File 'lib/ffi/clang/lib/cursor.rb', line 362 def version_string [major, minor, subminor].reject{|v| v < 0}.map(&:to_s).join(".") end |