Method: Qt::Rect#to_yaml

Defined in:
lib/ruber/qt_sugar.rb

#to_yaml(opts = {}) ⇒ Object


218
219
220
221
222
223
224
225
226
227
# File 'lib/ruber/qt_sugar.rb', line 218

def to_yaml opts = {}
  YAML.quick_emit(self, opts) do |out|
    out.map(taguri, to_yaml_style) do |map|
      map.add 'left', left
      map.add 'top', top
      map.add 'width', width
      map.add 'height', height
    end
  end
end