Class: Gexp::Receiver
- Inherits:
-
Object
show all
- Defined in:
- lib/gexp/receiver.rb,
lib/gexp/receiver/example.rb,
lib/gexp/receiver/mongoid.rb
Defined Under Namespace
Classes: Example, Mongoid
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(user, request) ⇒ Receiver
Returns a new instance of Receiver.
16
17
18
19
20
21
22
|
# File 'lib/gexp/receiver.rb', line 16
def initialize(user, request)
@user = user
@request = request
@stack = Gexp::Command::Stack.new \
@user, @request
end
|
Class Method Details
10
11
12
|
# File 'lib/gexp/receiver.rb', line 10
def current
@receiver ||= self.new
end
|
.current=(receiver) ⇒ Object
6
7
8
|
# File 'lib/gexp/receiver.rb', line 6
def current=(receiver)
@current = receiver
end
|
Instance Method Details
24
25
26
27
|
# File 'lib/gexp/receiver.rb', line 24
def receive
raise NotImplementedError.new \
"Abstract receiver class"
end
|