Sha256: 245c65773b298ed3ba31194e32cb5e4db5c76d7f8f3ef026194bb203d55fbf30
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
module ROM::Factory module Attributes # @api private class Value attr_reader :name, :value # @api private def initialize(name, value) @name = name @value = value end # @api private def call(attrs = EMPTY_HASH) return if attrs.key?(name) { name => value } end # @api private def value? true end # @api private def dependency_names EMPTY_ARRAY end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rom-factory-0.7.0 | lib/rom/factory/attributes/value.rb |
rom-factory-0.6.0 | lib/rom/factory/attributes/value.rb |
rom-factory-0.5.0 | lib/rom/factory/attributes/value.rb |