Module: Speaker
- Defined in:
- lib/speaker.rb,
lib/speaker/base.rb,
lib/speaker/version.rb,
lib/speaker/configuration.rb
Defined Under Namespace
Classes: Base, Configuration
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
8 9 10 |
# File 'lib/speaker.rb', line 8 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
11 12 13 14 |
# File 'lib/speaker.rb', line 11 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.new(params) ⇒ Object
16 17 18 |
# File 'lib/speaker.rb', line 16 def self.new(params) Base.new(params) end |