Class: Fabulator::Exhibit::Actions::Value
- Inherits:
-
Action
- Object
- Action
- Fabulator::Exhibit::Actions::Value
- Defined in:
- lib/fabulator/exhibit/actions/value.rb
Instance Method Summary collapse
Instance Method Details
#run(context, autovivify = false) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/fabulator/exhibit/actions/value.rb', line 11 def run(context, autovivify = false) @context.with(context) do |ctx| Fabulator::Exhibit::Actions::Lib.add_item_to_accumulator( self.name(ctx).first.to_s, self.select(ctx).collect{ |s| s.value } ) end end |