Class: QueryableArray

Inherits:
Array
  • Object
show all
Includes:
DotNotation, DynamicFinder, Queryable, Shorthand
Defined in:
lib/queryable_array.rb,
lib/queryable_array/version.rb,
lib/queryable_array/queryable.rb,
lib/queryable_array/shorthand.rb,
lib/queryable_array/dot_notation.rb,
lib/queryable_array/default_finder.rb,
lib/queryable_array/dynamic_finder.rb

Overview

A QueryableArray inherits from Array and is intended to store a group of objects which share the same attributes allowing them to be searched. It overrides [], find_all and method_missing to provide a simplified DSL for looking up objects by querying their attributes.

Defined Under Namespace

Modules: DefaultFinder, DotNotation, DynamicFinder, Queryable, Shorthand, Version

Method Summary

Methods included from DynamicFinder

#finder?, included, #method_missing, #respond_to_missing?

Methods included from DotNotation

included, #method_missing, #respond_to_missing?

Methods included from Shorthand

#[]

Methods included from Queryable

#find_all, #find_by, #finder

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class QueryableArray::DynamicFinder