â»ã販売æ°ãã¨ãä¾¡æ ¼ããåãéããä¾ããã¼ã¿æ¬¡ç¬¬ã§ã¯æ°ãä»ããªã ã³ã¼ããæ¹åããã ãããã¨ããããã«å¯¾å¿ããåå¤ã®å®è£ ãåé¢ãã¦ããããåãéãã¦ãã¾ãã¾ãã ãªãã°åæã«æ¸ããã°åãéãã¯èµ·ããã¾ããã ãããªã³ã¼ãã«ãã¦ã¿ã¾ããã def self.dump_csv rule = { '年度' => lambda(&:year), 'å·æ°' => lambda(&:no), 'ã¿ã¤ãã«' => lambda(&:title), 'ä¾¡æ ¼' => lambda(&:price), } CSV.generate do |csv| csv << rule.keys all.each do |article| csv << rule.values.map { |predicate| predicate.call(article) } end end end ãªã«ãã¦ããã ããï¼ ã¾ãã¯ããã
{{#tags}}- {{label}}
{{/tags}}