Module: Reactomatic
- Defined in:
- lib/reactomatic.rb,
lib/reactomatic/buffer.rb,
lib/reactomatic/reactor.rb,
lib/reactomatic/version.rb,
lib/reactomatic/exceptions.rb,
lib/reactomatic/tcp_server.rb,
lib/reactomatic/tcp_connection.rb
Defined Under Namespace
Classes: AlreadyStarted, Buffer, BufferFull, MustOverrideMethodError, ReactomaticError, Reactor, TcpConnection, TcpServer
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.lock ⇒ Object
Returns the value of attribute lock.
Class Method Summary collapse
Class Attribute Details
.lock ⇒ Object
Returns the value of attribute lock.
16 17 18 |
# File 'lib/reactomatic.rb', line 16 def lock @lock end |
Class Method Details
.reactor ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/reactomatic.rb', line 19 def self.reactor Reactomatic.lock.synchronize do unless @reactor @reactor = Reactor.new @reactor.start end return @reactor end end |