Sha256: faba2be06e364095509bab2979c3e5f3b8808cadb50c105acda28bdb6dc45ac0

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

# -*- coding: utf-8 -*-

module Trahald
  class BackendBase

    def initialize
    end

    def add!(name, body)
      raise "Called abstract method: add!"
    end

    def article(name)
      raise "Called abstract method: article"
    end

    def body(name)
      raise "Called abstract method: body"
    end

    def commit!(message)
      raise "Called abstract method: commit!"
    end

    def last_modified
      raise "Called abstract method: last_modified"
    end

    def list
      raise "Called abstract method: list"
    end

    def data
      raise "Called abstract method: data"
    end

    def self.init_repo_if_needed(dir)
      raise "Called abstract method: self.init_repo_if_needed"
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trahald-0.0.5 lib/trahald/backend-base.rb