Class: Wisper::Configuration::Broadcasters
- Inherits:
-
Object
- Object
- Wisper::Configuration::Broadcasters
- Extended by:
- Forwardable
- Defined in:
- lib/wisper/configuration.rb
Instance Method Summary collapse
- #fetch(key) ⇒ Object
-
#initialize ⇒ Broadcasters
constructor
A new instance of Broadcasters.
Constructor Details
#initialize ⇒ Broadcasters
Returns a new instance of Broadcasters.
34 35 36 |
# File 'lib/wisper/configuration.rb', line 34 def initialize @data = {} end |
Instance Method Details
#fetch(key) ⇒ Object
38 39 40 41 |
# File 'lib/wisper/configuration.rb', line 38 def fetch(key) raise KeyError, "broadcaster not found for #{key}" unless include?(key) @data[key] end |