# frozen_string_literal: true module Coltrane module Cli # Interfaces notes outputting functionality with the lib class Notes def initialize(notes, on: 'text', desc: nil, flavor: 'notes') @desc = desc || 'The notes you supplied:' flavor = flavor.underscore.to_sym on = on.to_sym notes = Coltrane::NoteSet.new(notes) @representation = Representation.build(on, notes, flavor) render end def render puts "\n" + [@desc, @representation.render].join("\n" * 2) end end end end