Method: Fall::StreamOperation.from_code
- Defined in:
- lib/fall/stream_operation.rb
.from_code(code) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/fall/stream_operation.rb', line 5 def self.from_code(code) func = instance_eval <<~RUBY proc do |stream| #{code} end RUBY new(func) end |