Class: NRSER::SendSerializer
- Defined in:
- lib/nrser/functions/tree/transform.rb
Instance Method Summary collapse
-
#initialize(messages = []) ⇒ SendSerializer
constructor
A new instance of SendSerializer.
- #method_missing(symbol, *args, &block) ⇒ Object
- #to_proc(publicly: true) ⇒ Object
Constructor Details
#initialize(messages = []) ⇒ SendSerializer
Returns a new instance of SendSerializer.
16 17 18 |
# File 'lib/nrser/functions/tree/transform.rb', line 16 def initialize = [] = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args, &block) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/nrser/functions/tree/transform.rb', line 20 def method_missing symbol, *args, &block = [ *, ::NRSER::Message.new( symbol, *args, &block ) ] self.class.new end |
Instance Method Details
#to_proc(publicly: true) ⇒ Object
29 30 31 |
# File 'lib/nrser/functions/tree/transform.rb', line 29 def to_proc publicly: true ::NRSER.chainer , publicly: publicly end |