Sha256: 02953344d9211906a8711d45fd63e0c6dc081a06e98a8e5dd3b6cebb96317453
Contents?: true
Size: 309 Bytes
Versions: 4
Compression:
Stored size: 309 Bytes
Contents
module Vedeu module Coercions private def multiple?(values) values.is_a?(::Array) end def single?(values) values.is_a?(::Hash) end def just_text?(values) values.is_a?(::String) end def empty?(values) values.nil? || values.empty? end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.29 | lib/vedeu/models/coercions.rb |
vedeu-0.0.28 | lib/vedeu/models/coercions.rb |
vedeu-0.0.27 | lib/vedeu/models/coercions.rb |
vedeu-0.0.26 | lib/vedeu/models/coercions.rb |