Module: Nocode::Util::Arrayable

Included in:
Step
Defined in:
lib/nocode/util/arrayable.rb

Overview

Hand

Instance Method Summary collapse

Instance Method Details

#array(value) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/nocode/util/arrayable.rb', line 7

def array(value)
  if value.is_a?(Hash)
    [value]
  else
    Array(value)
  end
end