Sha256: ee597fc4373db2086c9689258f1c7f2aaec243a65eb9abdc941140e72a18bca0
Contents?: true
Size: 362 Bytes
Versions: 3
Compression:
Stored size: 362 Bytes
Contents
# frozen_string_literal: true module Danica class Operator::Addition < Operator::Chained default_value :priority, 1 private default_value :symbol, :+ def chain_operation(first, second) first + second 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.7 | lib/danica/operator/addition.rb |
danica-2.7.6 | lib/danica/operator/addition.rb |
danica-2.7.5 | lib/danica/operator/addition.rb |