Skip to content

Where module to give `where` functionality to Arrays of Hashes

Notifications You must be signed in to change notification settings

thomasjlee/where

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Array Extension

Setup

This project was built with Ruby 2.6.1 with RSpec 3.8.0.

Download the repo and run bundle install.

Specs

To run the specs, run bundle exec rspec.

Omissions

  • A proper SQL abstraction should include sanitization, for which ActiveRecord::Sanitization could be used. For the purposes of this exercise I've omitted this feature.
  • #where in Ruby on Rails can handle many more formats, such as sprintf-style placeholders.

Original Instructions

Array Extension

Please write a module that gives where behavior to an array of hashes. (See test.rb and make it pass, or feel free to convert the tests to your favorite test framework.)

About

Where module to give `where` functionality to Arrays of Hashes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages