class Ilex::ComponentWardens

Thin wrapper around a hash of component wardens such that the default is always an instance of ComponentWarden

Public Class Methods

new(component) click to toggle source
# File lib/ilex/component_wardens.rb, line 8
def initialize(component)
  @wardens = Hash.new do |hash, key|
    hash[key] = ComponentWarden.new(component, key)
  end
end

Public Instance Methods

[](key) click to toggle source
# File lib/ilex/component_wardens.rb, line 14
def [](key)
  @wardens[key]
end