Sha256: 261d0925937b2847a29ac1993750a9cb5e8c1e2a6b5861e2375f6c11dbc45ca6

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

module DSLize
  module Formatter
    
    class Base
      attr_accessor :objects
      attr_accessor :superclasses
      
      def initialize
        self.objects = DSLize.objects
        self.superclasses = DSLize.superclasses
      end
      
      protected
      def get_subclasses(type)
        superclasses.select { |k,v| v.to_s == type.to_s }.keys
      end
    end
    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dslize-0.0.4 lib/dslize/formatter/formatter.rb