Class: ViewSpec::SpecCollection
- Inherits:
-
EntryCollection
- Object
- EntryCollection
- ViewSpec::SpecCollection
- Defined in:
- lib/view_spec/spec_collection.rb
Instance Method Summary collapse
Methods included from Collection
#+, #<<, #find_where, #find_where!, #initialize, #to_a, #where
Instance Method Details
#find(subject = nil, &block) ⇒ Object
3 4 5 |
# File 'lib/view_spec/spec_collection.rb', line 3 def find(subject = nil, &block) subject.nil? ? items.find(&block) : find_where({subject:}) end |