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.



402
# File 'lib/Qt/qtruby4.rb', line 402

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

Instance Attribute Details

#valueObject

Returns the value of attribute value.



401
402
403
# File 'lib/Qt/qtruby4.rb', line 401

def value
  @value
end

Instance Method Details

#nil?Boolean

Returns:



403
404
405
# File 'lib/Qt/qtruby4.rb', line 403

def nil? 
	return !@value 
end