Sha256: 72084dde63f0d0dd9cc1515ecacede080a06b26105a21423622bf139512ad816

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

module Analyst

  module Entities
    class SingletonClass < Entity

      handles_node :sclass

      def full_name
        parent.full_name + "!SINGLETON"
      end

      def name
        parent.name + "!SINGLETON"
      end

      def smethods
        @smethods ||= contents.select { |entity| entity.is_a? Analyst::Entities::InstanceMethod }
      end

    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
analyst-1.2.4 lib/analyst/entities/singleton_class.rb
analyst-1.2.3 lib/analyst/entities/singleton_class.rb
analyst-1.2.2 lib/analyst/entities/singleton_class.rb
analyst-1.2.1 lib/analyst/entities/singleton_class.rb
analyst-1.2.0 lib/analyst/entities/singleton_class.rb
analyst-1.0.1 lib/analyst/entities/singleton_class.rb
analyst-1.0.0 lib/analyst/entities/singleton_class.rb
analyst-0.16.1 lib/analyst/entities/singleton_class.rb
analyst-0.15.0 lib/analyst/entities/singleton_class.rb