Class: Qt::Boolean
Overview
mutable boolean for compatibility compatibility with qtruby
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(b = false) ⇒ Boolean
constructor
A new instance of Boolean.
- #nil? ⇒ Boolean
Constructor Details
#initialize(b = false) ⇒ Boolean
Returns a new instance of Boolean.
110 |
# File 'lib/qt_connect/qt_compat.rb', line 110 def initialize(b=false) @value = b end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
109 110 111 |
# File 'lib/qt_connect/qt_compat.rb', line 109 def value @value end |
Instance Method Details
#nil? ⇒ Boolean
111 112 113 |
# File 'lib/qt_connect/qt_compat.rb', line 111 def nil? return !@value end |