Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/qml/core_ext/to_qml.rb

Instance Method Summary collapse

Instance Method Details

#to_qmlObject



49
50
51
52
53
54
55
# File 'lib/qml/core_ext/to_qml.rb', line 49

def to_qml
  QML.engine.new_object.tap do |jsobj|
    self.each do |key, value|
      jsobj[key] = value
    end
  end
end