Replies: 1 comment
-
|
Interesting use case! In this simple example I would do the following: class Streamer < Actor
input :provider
def call
"Streaming::Provider::#{provider.classify}".constantize.call
end
endIf you want to be able to use class Streamer < Actor
input :provider
play :call_provider
private
def call_provider
"Streaming::Provider::#{provider.classify}".constantize.call(result)
end
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does it make sense? Can it be done? Is anyone doing this? It seems like this is what I would want to use, because I want to dynamically declare one of the plays based on inputs like;
The input is available from
call, of course, but there are zero examples anywhere I can find of an Actor using both thecalland theplaypatterns.Beta Was this translation helpful? Give feedback.
All reactions