Class: Fabulator::Core::Actions::Sort

Inherits:
Action
  • Object
show all
Defined in:
lib/fabulator/core/actions/for_each.rb

Instance Method Summary collapse

Instance Method Details

#run(context, autovivify = false) ⇒ Object



58
59
60
# File 'lib/fabulator/core/actions/for_each.rb', line 58

def run(context, autovivify = false)
  (self.select(@context.merge(context)).first.to_s rescue '')
end