Method: ComponentHost::Host#registered?

Defined in:
lib/component_host/host.rb

#registered?(&block) ⇒ Boolean

Returns:

  • (Boolean)


119
120
121
122
123
124
125
# File 'lib/component_host/host.rb', line 119

def registered?(&block)
  block ||= proc { true }

  components.any? do |component|
    block.(component.initiator, component.name)
  end
end