Class: Aleph::Base
- Inherits:
-
Object
- Object
- Aleph::Base
- Defined in:
- lib/armstrong.rb,
lib/armstrong/main_actors.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.conn ⇒ Object
Returns the value of attribute conn.
-
.pairs ⇒ Object
Returns the value of attribute pairs.
-
.replier ⇒ Object
Returns the value of attribute replier.
-
.request_handler ⇒ Object
Returns the value of attribute request_handler.
-
.routes ⇒ Object
Returns the value of attribute routes.
-
.supervisor ⇒ Object
Returns the value of attribute supervisor.
Class Method Summary collapse
Class Attribute Details
.conn ⇒ Object
Returns the value of attribute conn.
28 29 30 |
# File 'lib/armstrong.rb', line 28 def conn @conn end |
.pairs ⇒ Object
Returns the value of attribute pairs.
28 29 30 |
# File 'lib/armstrong.rb', line 28 def pairs @pairs end |
.replier ⇒ Object
Returns the value of attribute replier.
4 5 6 |
# File 'lib/armstrong/main_actors.rb', line 4 def replier @replier end |
.request_handler ⇒ Object
Returns the value of attribute request_handler.
4 5 6 |
# File 'lib/armstrong/main_actors.rb', line 4 def request_handler @request_handler end |
.routes ⇒ Object
Returns the value of attribute routes.
28 29 30 |
# File 'lib/armstrong.rb', line 28 def routes @routes end |
.supervisor ⇒ Object
Returns the value of attribute supervisor.
4 5 6 |
# File 'lib/armstrong/main_actors.rb', line 4 def supervisor @supervisor end |
Class Method Details
.get(path, &block) ⇒ Object
43 44 45 |
# File 'lib/armstrong.rb', line 43 def get(path, &block) (@pairs ||= []) << AddRoute.new(compile(path), block) end |
.new_uuid ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/armstrong.rb', line 30 def new_uuid values = [ rand(0x0010000), rand(0x0010000), rand(0x0010000), rand(0x0010000), rand(0x0010000), rand(0x1000000), rand(0x1000000), ] "%04x%04x-%04x-%04x-%04x%06x%06x" % values end |