_plugins/data.rb
# takes a range and returns a list of numbers within that range
# incrimented by 1
# Only accepts an Array. Otherwise returns the range
# e.g [0,5] => [0,1,2,3,4,5]
# e.g '[0,5]' => '[0,5]'
takes a range and returns a list of numbers within that range
incrimented by 1
Only accepts an Array.
takes a range and returns a list of numbers within that range incrimented by 1 Only accepts an Array .
def create_list(range)
      if range.is_a? Array
        arr = []
        min = range[0]
        max = range[1]
        (min..max).step(1) do |i|
          arr.push(i)
        end
        arr
      else
        range
      end
    end
def create_list ( range ) if range . is_a? Array arr = [ ] min = range [ 0 ] max = range [ 1 ] ( min .. max ) . step ( 1 ) do | i | arr . push ( i ) end arr else range end end
takes a range and returns a list of numbers within that range
incrimented by 1
Only accepts an Array.
takes a range and returns a list of numbers within that range incrimented by 1 Only accepts an Array .
range