Class: Beeps::Processor

Inherits:
Object
  • Object
show all
Includes:
Xot::Setter
Defined in:
lib/beeps/processor.rb

Instance Method Summary collapse

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(**options, &block)
  super()
  set options unless options.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