Module: Arel::Session::CRUD
- Included in:
- Arel::Session
- Defined in:
- lib/arel/session.rb
Instance Method Summary collapse
Instance Method Details
#create(insert) ⇒ Object
31 32 33 |
# File 'lib/arel/session.rb', line 31 def create(insert) insert.call end |
#delete(delete) ⇒ Object
45 46 47 |
# File 'lib/arel/session.rb', line 45 def delete(delete) delete.call end |
#read(select) ⇒ Object
35 36 37 38 39 |
# File 'lib/arel/session.rb', line 35 def read(select) (@read ||= Hash.new do |hash, select| hash[select] = select.call end)[select] end |
#update(update) ⇒ Object
41 42 43 |
# File 'lib/arel/session.rb', line 41 def update(update) update.call end |