Class: Qt::Url

Inherits:
Object show all
Defined in:
lib/ruber/qt_sugar.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

._load(str) ⇒ Object



451
452
453
# File 'lib/ruber/qt_sugar.rb', line 451

def self._load str
  self.new str
end

.yaml_new(cls, tag, val) ⇒ Object



437
438
439
# File 'lib/ruber/qt_sugar.rb', line 437

def self.yaml_new cls, tag, val
  Qt::Url.new val
end

Instance Method Details

#_dump(_) ⇒ Object



447
448
449
# File 'lib/ruber/qt_sugar.rb', line 447

def _dump _
  to_string
end

#to_yaml(opts = {}) ⇒ Object



441
442
443
444
445
# File 'lib/ruber/qt_sugar.rb', line 441

def to_yaml opts = {}
  YAML.quick_emit(self, opts) do |out|
    out.scalar taguri, to_string, :plain
  end
end