Sha256: 5d240ae6942964961afb0d78f455e36a2212cbc181ba265b9f1e889e4ab67c4f
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true require "rom/support/inflector" module ROM # TODO: look into making command graphs work without the root key in the input # so that we can get rid of this wrapper # # @api private class CommandProxy attr_reader :command attr_reader :root # @api private def initialize(command, root) @command = command @root = root end # @api private def call(input) command.call(root => input) end # @api private def >>(other) self.class.new(command >> other, root) end # @api private def restrictible? command.restrictible? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-6.0.0.alpha1 | lib/rom/command_proxy.rb |