Sha256: c4460b20b632dee9192eb5b2810466bafe60841b8038d5e46277d37358ab4711

Contents?: true

Size: 487 Bytes

Versions: 8

Compression:

Stored size: 487 Bytes

Contents

module Maintain
  module Backend
    class Base
      def aggregate(maintainee, attribute, name, options, states)
        require_method :aggregate
      end

      def read(instance, attribute)
        require_method :read
      end

      def write(instance, attribute, value)
        require_method :write
      end

      private
      def require_method(method_name)
        raise "You need to implement the ##{method_name} method in #{self.class.name}"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
maintain-0.2.10 lib/maintain/backend/base.rb
maintain-0.2.9 lib/maintain/backend/base.rb
maintain-0.2.8 lib/maintain/backend/base.rb
maintain-0.2.6 lib/maintain/backend/base.rb
maintain-0.2.5 lib/maintain/backend/base.rb
maintain-0.2.4 lib/maintain/backend/base.rb
maintain-0.2.2 lib/maintain/backend/base.rb
maintain-0.2.1 lib/maintain/backend/base.rb