Sha256: 7ef74ba83780dc538afac03d5f5ff70d1c3f4bdd7e3d6fe2a8fd7845c5e56aba

Contents?: true

Size: 371 Bytes

Versions: 8

Compression:

Stored size: 371 Bytes

Contents

module RR
  # RR::Creator is the superclass for all creators.
  class Creator
    def initialize(space, subject)
      @space = space
      @subject = subject
      class << self
        instance_methods.each do |m|
          undef_method m unless m =~ /^__/
        end
        include self::InstanceMethods
      end
      yield(self) if block_given?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rr-0.1.15 lib/rr/creator.rb
rr-0.1.13 lib/rr/creator.rb
rr-0.1.14 lib/rr/creator.rb
rr-0.1.12 lib/rr/creator.rb
rr-0.2.1 lib/rr/creator.rb
rr-0.2.2 lib/rr/creator.rb
rr-0.2.4 lib/rr/creator.rb
rr-0.2.3 lib/rr/creator.rb