Sha256: 240ac53086d30c86821797e1d707a842a1684bc2de230d017d9c6ece8ef96ada
Contents?: true
Size: 602 Bytes
Versions: 20
Compression:
Stored size: 602 Bytes
Contents
=begin rdoc Base class for all PoolParty objects =end module PoolParty class Base include Dslify attr_reader :name def initialize(name, o={}, &block) @name = name @init_opts = o set_vars_from_options(o) instance_eval &block if block after_initialized end def after_initialized end def run warn "#{self.class} does not implement run. Something is wrong" end def method_missing(m,*a,&block) if parent.respond_to?(m) parent.send(m,*a,&block) else super end end private end end
Version data entries
20 entries across 20 versions & 1 rubygems