Class: Moon::Action::RebuildArrays

Inherits:
Object
  • Object
show all
Defined in:
lib/moon/action/rebuild_arrays.rb

Overview

Converts each hash with numeric keys { “0” => “one”, “1” => “two” } into arrays [ “one”, “two” ].

Instance Method Summary collapse

Instance Method Details

#perform(context) ⇒ Object



5
6
7
8
9
# File 'lib/moon/action/rebuild_arrays.rb', line 5

def perform(context)
  @context = context
  @context.parameters = self.class.rebuild_arrays @context.parameters
  nil
end