class Ticard::LocalRepository

Public Instance Methods

get(card_path) click to toggle source
# File lib/ticard/local_repository.rb, line 4
def get(card_path)
  content = read(card_path)
  Parser.new(content).parse
end
put(card) click to toggle source
# File lib/ticard/local_repository.rb, line 9
def put(card)
  content = Serializer.new(card.as_stored).serialize
  write(card) { |f| f << content }
end