Class: Qt::Font
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
._load(str) ⇒ Object
386 387 388 389 390 |
# File 'lib/ruber/qt_sugar.rb', line 386 def self._load str res = Qt::Font.new res.from_string str res end |
.yaml_new(cls, tag, val) ⇒ Object
370 371 372 373 374 |
# File 'lib/ruber/qt_sugar.rb', line 370 def self.yaml_new cls, tag, val res = Qt::Font.new res.from_string val res end |
Instance Method Details
#_dump(_) ⇒ Object
382 383 384 |
# File 'lib/ruber/qt_sugar.rb', line 382 def _dump _ to_string end |
#to_yaml(opts = {}) ⇒ Object
376 377 378 379 380 |
# File 'lib/ruber/qt_sugar.rb', line 376 def to_yaml opts = {} YAML.quick_emit(self, opts) do |out| out.scalar taguri, to_string, :plain end end |