Module: EnMasse
- Defined in:
- lib/en_masse.rb,
lib/en_masse/version.rb
Defined Under Namespace
Modules: Refinements Classes: Inserts
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
Class Method Details
.insert(collection) ⇒ Object
4 5 6 |
# File 'lib/en_masse.rb', line 4 def self.insert collection Inserts.new(collection).call end |
.validate(collection) ⇒ Object
8 9 10 |
# File 'lib/en_masse.rb', line 8 def self.validate collection collection.partition(&:valid?) end |