Class: Beeps::Processor
- Inherits:
-
Object
- Object
- Beeps::Processor
- Includes:
- Xot::Setter
- Defined in:
- lib/beeps/processor.rb
Instance Method Summary collapse
- #<<(o) ⇒ Object
- #>>(o) ⇒ Object
-
#initialize(**options, &block) ⇒ Processor
constructor
A new instance of Processor.
Constructor Details
#initialize(**options, &block) ⇒ Processor
Returns a new instance of Processor.
15 16 17 18 19 |
# File 'lib/beeps/processor.rb', line 15 def initialize(**, &block) super() set unless .empty? Xot::BlockUtil.instance_eval_or_block_call self, &block if block end |
Instance Method Details
#<<(o) ⇒ Object
26 27 28 29 |
# File 'lib/beeps/processor.rb', line 26 def <<(o) self.input = o o end |
#>>(o) ⇒ Object
21 22 23 24 |
# File 'lib/beeps/processor.rb', line 21 def >>(o) o.input = self o end |