Module: QML::Reactive::ClassMethods

Included in:
QML::Reactive
Defined in:
lib/qml/reactive.rb

Instance Method Summary collapse

Instance Method Details

#properties(include_super = true) ⇒ Object



119
120
121
# File 'lib/qml/reactive.rb', line 119

def properties(include_super = true)
  property_infos(include_super).keys
end

#property_infos(include_super = true) ⇒ Object



123
124
125
126
127
128
129
# File 'lib/qml/reactive.rb', line 123

def property_infos(include_super = true)
  if include_super && superclass.include?(Access)
    superclass.property_infos.merge(property_infos(false))
  else
    @property_infos ||= {}
  end
end

#signal_infos(include_super = true) ⇒ Object



80
81
82
83
84
85
86
# File 'lib/qml/reactive.rb', line 80

def signal_infos(include_super = true)
  if include_super && superclass.include?(Access)
    superclass.signal_infos.merge(signal_infos(false))
  else
    @signal_infos ||= {}
  end
end

#signals(include_super = true) ⇒ Object



76
77
78
# File 'lib/qml/reactive.rb', line 76

def signals(include_super = true)
  signal_infos(include_super).keys
end