Method: Hash#merge_if
- Defined in:
- lib/mumuki/classroom/models/concerns/extensions.rb
#merge_if(criterion, hash) ⇒ Object
48 49 50 51 |
# File 'lib/mumuki/classroom/models/concerns/extensions.rb', line 48 def merge_if(criterion, hash) return merge hash if criterion self end |