Sha256: 92a3011dde530b9391dc1d0dff48d192901b82e96a05831a4abe5a7a16265005

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

require_relative 'logger'

module Annoyme
  class Adder
    def initialize(file)
      @file = file
    end

    def add(note)
      notes = @file.parse
      notes << note
      @file.write(notes)
      Logger.green('added', note)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
annoyme-1.0.0 lib/annoyme/adder.rb