Class: Mystro::Dsl::Compute
- Defined in:
- lib/mystro/dsl/compute.rb
Instance Method Summary collapse
Instance Method Details
#actions ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/mystro/dsl/compute.rb', line 16 def actions c = to_hash n = c[:num].to_i out = [] if n > 0 1.upto(n) do |i| out << create_action(i, c) end else out << create_action(nil, c) end out end |