Sha256: 7515b5aac93f1c2fa27027bfa63c5f57b4c25cad27b056f7be66b486eec64b33
Contents?: true
Size: 400 Bytes
Versions: 3
Compression:
Stored size: 400 Bytes
Contents
module ROM module Commands # Common behavior for Create and Update commands # # TODO: find a better name for this module module WithOptions attr_reader :validator, :input # @api private def initialize(relation, options) super @validator = options[:validator] || Proc.new {} @input = options[:input] || Hash end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rom-0.4.2 | lib/rom/commands/with_options.rb |
rom-0.4.1 | lib/rom/commands/with_options.rb |
rom-0.4.0 | lib/rom/commands/with_options.rb |