Class: FFI::Clang::Lib::CXVersion

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

Instance Method Summary collapse

Instance Method Details

#majorObject



350
351
352
# File 'lib/ffi/clang/lib/cursor.rb', line 350

def major
	self[:major]
end

#minorObject



354
355
356
# File 'lib/ffi/clang/lib/cursor.rb', line 354

def minor
	self[:minor]
end

#subminorObject



358
359
360
# File 'lib/ffi/clang/lib/cursor.rb', line 358

def subminor
	self[:subminor]
end

#to_sObject



366
367
368
# File 'lib/ffi/clang/lib/cursor.rb', line 366

def to_s
	version_string
end

#version_stringObject



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