Sha256: 67e960649d41dab5a0ced9f1b8107bbbb40e816a5c878e8dc176e311ff4323f6
Contents?: true
Size: 595 Bytes
Versions: 3
Compression:
Stored size: 595 Bytes
Contents
module Maintain module Backend class Base attr_reader :maintainer def aggregate(maintainee, attribute, name, options, states) require_method :aggregate end def initialize(maintainer) @maintainer = maintainer 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
maintain-0.2.13 | lib/maintain/backend/base.rb |
maintain-0.2.12 | lib/maintain/backend/base.rb |
maintain-0.2.11 | lib/maintain/backend/base.rb |