_plugins/eiti_data.rb
def to_list(range)
      if range.is_a?(Array)
        create_list(range)
      elsif range.is_a?(String)
        range = json_parse(range)
        create_list(range)
      else
        range
      end
    end
# takes a range and returns a list of numbers within that range
# incremented by 1:
#
# >> EITI::Data.to_list('[0,5]')
# =>[0,1,2,3,4,5]
# >> EITI::Data.to_list([0,5])
# => [0,1,2,3,4,5]
# >> EITI::Data.to_list(5)
# => 5
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 .
def to_list(range)
      if range.is_a?(Array)
        create_list(range)
      elsif range.is_a?(String)
        range = json_parse(range)
        create_list(range)
      else
        range
      end
    end
def to_list ( range ) if range . is_a? ( Array ) create_list ( range ) elsif range . is_a? ( String ) range = json_parse ( range ) create_list ( range ) 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