Class: Qt::Variant
Instance Method Summary collapse
-
#to_bool ⇒ Object
Redefinition of
to_bool
it’s needed because otherwise the Object#to_bool method defined infacets/boolean
is used, instead of calling method_missing. - #to_sym ⇒ Object
Instance Method Details
#to_bool ⇒ Object
Redefinition of to_bool
it’s needed because otherwise the Object#to_bool method defined in facets/boolean
is used, instead of calling method_missing.
By explicitly define a to_bool</method> and having it call <tt>method_missing
, the problem is solved
585 586 587 |
# File 'lib/ruber/qt_sugar.rb', line 585 def to_bool method_missing :to_bool end |
#to_sym ⇒ Object
574 575 576 |
# File 'lib/ruber/qt_sugar.rb', line 574 def to_sym to_string.to_sym end |