Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/qml/core_ext/to_qml.rb
Instance Method Summary collapse
Instance Method Details
#to_qml ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/qml/core_ext/to_qml.rb', line 39 def to_qml QML.engine.new_array(self.size).tap do |jsarray| self.each_with_index do |x, i| jsarray[i] = x end end end |