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

Version Path
poolparty-1.6.9 lib/poolparty/base.rb
poolparty-1.6.8 lib/poolparty/base.rb
poolparty-1.6.7 lib/poolparty/base.rb
poolparty-1.6.6 lib/poolparty/base.rb
poolparty-1.6.5 lib/poolparty/base.rb
poolparty-1.6.4 lib/poolparty/base.rb
poolparty-1.6.3 lib/poolparty/base.rb
poolparty-1.6.2 lib/poolparty/base.rb
poolparty-1.6.1 lib/poolparty/base.rb
poolparty-1.6.0 lib/poolparty/base.rb
poolparty-1.5.0 lib/poolparty/base.rb
poolparty-1.4.8 lib/poolparty/base.rb
poolparty-1.4.7 lib/poolparty/base.rb
poolparty-1.4.6 lib/poolparty/base.rb
poolparty-1.4.5 lib/poolparty/base.rb
poolparty-1.4.4 lib/poolparty/base.rb
poolparty-1.4.3 lib/poolparty/base.rb
poolparty-1.4.2 lib/poolparty/base.rb
poolparty-1.4.1 lib/poolparty/base.rb
poolparty-1.4.0 lib/poolparty/base.rb