Sha256: 3bddb868c993195218cf757c8bda690d1d0e02cacacd6f699b49f700eb3cc50a
Contents?: true
Size: 949 Bytes
Versions: 4
Compression:
Stored size: 949 Bytes
Contents
module Sbuilder class ResolverRule # ------------------------------------------------------------------ # mixer PROGNAME = nil # progname for logger default class name include Sbuilder::Utils::MyLogger # mix logger # ------------------------------------------------------------------ # constrcutore def initialize( options = {} ) @logger = getLogger( PROGNAME, options ) @logger.debug( "#{__method__} initialized" ) end # ------------------------------------------------------------------ # resolve domain # return true if domain resolved def applyRule( parameter, model ) doApplyRule( parameter, model ) end def doApplyRule( parameter, model ) msg = "Sub class should implement doApplyRule -method" @logger.error( "#{__method__} #{msg}" ) raise NoMethodError.new( msg ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems