Class: Wisper::Configuration
- Inherits:
-
Object
- Object
- Wisper::Configuration
- Defined in:
- lib/wisper/configuration.rb
Defined Under Namespace
Classes: Broadcasters
Instance Attribute Summary collapse
-
#broadcasters ⇒ Object
readonly
Returns the value of attribute broadcasters.
Instance Method Summary collapse
- #broadcaster(name, broadcaster) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/wisper/configuration.rb', line 5 def initialize @broadcasters = Broadcasters.new end |
Instance Attribute Details
#broadcasters ⇒ Object (readonly)
Returns the value of attribute broadcasters.
3 4 5 |
# File 'lib/wisper/configuration.rb', line 3 def broadcasters @broadcasters end |
Instance Method Details
#broadcaster(name, broadcaster) ⇒ Object
9 10 11 |
# File 'lib/wisper/configuration.rb', line 9 def broadcaster(name, broadcaster) @broadcasters[name] = broadcaster end |