Sha256: 16afba8ed79f5f8c0b1730c7e3e0fea7704f61b843bfc1f8f92b06f2004683e8
Contents?: true
Size: 1.41 KB
Versions: 8
Compression:
Stored size: 1.41 KB
Contents
# frozen_string_literal: true module Checkability # @abstract class Checker # hook method to initialize concreet attributes # @abstract # # @param [Hash] # # @return new object def post_initialize(_opts) raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end # @abstract # # @param [Handler] handler def next_handler=(_handler) raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end # @abstract # # @param [String] request # # @return [String, nil] def handle(_handler) raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end # @abstract # # @param [String] request # # @return Array [ [Boolean, true|false], String, message] ] def result_and_message(_object) raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end # @abstract # # @param [Checkable object] request # # @return [Boolean, true|false] def result(_object) raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end # @abstract # # @params [Boolean], [String] # # @return [String] def message(_res, _str) raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end end end
Version data entries
8 entries across 8 versions & 1 rubygems