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


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

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

Instance Attribute Details

#valueObject

Returns the value of attribute value


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

def value
  @value
end

Instance Method Details

#nil?Boolean

Returns:


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

def nil?
  return !@value
end