lib/json2/csv_with_header.rb
# Creates a new CsvWithHeader instance.
#
# input   - A Hash representing a Json file. This is typically
#           obtained with JSON.parse.
# options - Optional. A Hash of options, see Option to get the list.
Creates a new CsvWithHeader instance.
input   - A Hash representing a Json file. This is typically
obtained with JSON.parse.
options - Optional. A Hash of options, see Option to get the list.
Creates a new CsvWithHeader instance . input - A Hash representing a Json file . This is typically obtained with JSON . parse . options - Optional . A Hash of options see Option to get the list .
def process_key(object)
      case object
      when ~:each_key then process_keys(object)
      when ~:at then process_array(object)
      else
        @nodes[current_line] <<= object if line_eligible?
      end
    end
def process_key ( object ) case object when ~ :each_key then process_keys ( object ) when ~ :at then process_array ( object ) else @nodes [ current_line ] <<= object if line_eligible? end end
Creates a new CsvWithHeader instance.
Creates a new CsvWithHeader instance .
object