Sha256: 624cfa580b2740b31bdf9d1917a1216d1b6f9951817cda01853e073556aba275
Contents?: true
Size: 308 Bytes
Versions: 14
Compression:
Stored size: 308 Bytes
Contents
# frozen_string_literal: true module Pipeable # Allows objects to be functionally composable. module Composable def >>(other) = method(:call) >> other def <<(other) = method(:call) << other def call = fail NoMethodError, "`#{self.class.name}##{__method__}` must be implemented." end end
Version data entries
14 entries across 14 versions & 1 rubygems