Sha256: 2ca9499b49bb67d5498bc560f45c15779c106200b423d97767a076a29cf9e8fe
Contents?: true
Size: 314 Bytes
Versions: 3
Compression:
Stored size: 314 Bytes
Contents
module Danica class Operator::Addition < Operator::Chained default_value :priority, 1 private default_value :symbol, :+ def chain_operation(a, b) a + b end def join_proc(symbol) proc do |_, value| value.signaled? ? ' ' : " #{symbol} " end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danica-2.7.4 | lib/danica/operator/addition.rb |
danica-2.7.3 | lib/danica/operator/addition.rb |
danica-2.7.2 | lib/danica/operator/addition.rb |