Module: QML::JSUtil

Defined in:
lib/qml/js_util.rb

Class Method Summary collapse

Class Method Details

.classesObject



14
15
16
# File 'lib/qml/js_util.rb', line 14

def self.classes
  data.classes
end

.dataObject



4
5
6
7
8
9
10
11
12
# File 'lib/qml/js_util.rb', line 4

def self.data
  @data ||= QML.engine.evaluate <<-JS
    ({
      classes: {
        Date: Date
      }
    })
  JS
end