Sha256: cbd5ed0f01ad54bf9fed39407f9ca740c45f4261850bf55b8e312d70722a37f9
Contents?: true
Size: 423 Bytes
Versions: 9
Compression:
Stored size: 423 Bytes
Contents
module Acl9 module Prepositions VALID_PREPOSITIONS = %i(of for in on at by).freeze unless defined? VALID_PREPOSITIONS def _by_preposition options object = nil VALID_PREPOSITIONS.each do |prep| if options[prep] raise ArgumentError, "You may only use one preposition to specify object" if object object = options[prep] end end object end end end
Version data entries
9 entries across 9 versions & 2 rubygems