Sha256: 1a9deaa22995cdfb89a34becc3a2ec66c3fc32ad102d170a08f3d2a618d65adf

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

module Analyst

  module Entities
    class SingletonClass < Entity

      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

3 entries across 3 versions & 1 rubygems

Version Path
analyst-0.14.2 lib/analyst/entities/singleton_class.rb
analyst-0.14.1 lib/analyst/entities/singleton_class.rb
analyst-0.14.0 lib/analyst/entities/singleton_class.rb