Class: Qt::Boolean

Inherits:
Object show all
Defined in:
lib/qt/qtruby4.rb

Overview

Provides a mutable boolean class for passing to methods with C++ ‘bool*’ or ‘bool&’ arg types

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(b = false) ⇒ Boolean

Returns a new instance of Boolean.



2024
# File 'lib/qt/qtruby4.rb', line 2024

def initialize(b=false) @value = b end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



2023
2024
2025
# File 'lib/qt/qtruby4.rb', line 2023

def value
  @value
end

Instance Method Details

#nil?Boolean

Returns:



2025
2026
2027
# File 'lib/qt/qtruby4.rb', line 2025

def nil? 
	return !@value 
end