Method: Amiba::Source::StateScope#apply

Defined in:
lib/amiba/source/entry_finder.rb

#apply(entries) ⇒ Object



122
123
124
125
# File 'lib/amiba/source/entry_finder.rb', line 122

def apply(entries)
  return entries if @state == :any
  entries.select {|e| e.state.to_sym == @state}
end