_plugins/eiti_data.rb
def create_list(range)
      if range.is_a?(Array)
        (range[0]..range[1]).step(1).to_a
      else
        range
      end
    end
# takes a range and returns a list of numbers within that range
# incremented by 1:
#
# Only accepts an Array. Otherwise returns the range
# >> EITI::Data.create_list([0, 5])
# => [0,1,2,3,4,5]
# >> EITI::Data.create_list('[0,5]')
# => '[0,5]'
takes a range and returns a list of numbers within that range
incremented by 1.

Only accepts an Array.
takes a range and returns a list of numbers within that range incremented by 1 . Only accepts an Array .
def create_list(range)
      if range.is_a?(Array)
        (range[0]..range[1]).step(1).to_a
      else
        range
      end
    end
def create_list ( range ) if range . is_a? ( Array ) ( range [ 0 ] .. range [ 1 ] ) . step ( 1 ) . to_a else range end end
takes a range and returns a list of numbers within that range
incremented by 1:
takes a range and returns a list of numbers within that range incremented by 1 :
range