Class: PeertransferChat
- Inherits:
-
Object
- Object
- PeertransferChat
- Defined in:
- lib/peertransfer_chat/client.rb,
lib/peertransfer_chat/config.rb,
lib/peertransfer_chat/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'1.0.0'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.config ⇒ Object
26 27 28 29 |
# File 'lib/peertransfer_chat/config.rb', line 26 def config raise('configuration is wrong') unless @config.valid? @config end |
.configure {|@config| ... } ⇒ Object
17 18 19 20 |
# File 'lib/peertransfer_chat/config.rb', line 17 def configure @config ||= new.config yield(@config) end |
.reset! ⇒ Object
22 23 24 |
# File 'lib/peertransfer_chat/config.rb', line 22 def reset! @config = Config.new end |
Instance Method Details
#config ⇒ Object
12 13 14 |
# File 'lib/peertransfer_chat/config.rb', line 12 def config @config ||= Config.new end |