Class: Hyperloop::Component

Inherits:
Object show all
Defined in:
lib/hyper-component.rb,
lib/hyper-component.rb,
lib/react/component.rb,
lib/reactive-ruby/version.rb

Defined Under Namespace

Modules: Mixin

Constant Summary collapse

VERSION =
'0.99.6'

Class Method Summary collapse

Class Method Details

.force_update!Object



19
20
21
22
23
24
25
# File 'lib/react/component.rb', line 19

def force_update!
  components = mounted_components.to_a
  components.each do |comp|
    next unless mounted_components.include? comp
    comp.force_update!
  end
end

.inherited(child) ⇒ Object



36
37
38
# File 'lib/hyper-component.rb', line 36

def self.inherited(child)
  child.include(Mixin)
end

.mounted_componentsObject



15
16
17
# File 'lib/react/component.rb', line 15

def mounted_components
  @mounted_components ||= Set.new
end