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.
7 8 9 |
# File 'lib/wisper/configuration.rb', line 7 def initialize @broadcasters = Broadcasters.new end |
Instance Attribute Details
#broadcasters ⇒ Object (readonly)
Returns the value of attribute broadcasters.
5 6 7 |
# File 'lib/wisper/configuration.rb', line 5 def broadcasters @broadcasters end |
Instance Method Details
#broadcaster(name, broadcaster) ⇒ Object
11 12 13 |
# File 'lib/wisper/configuration.rb', line 11 def broadcaster(name, broadcaster) @broadcasters[name] = broadcaster end |