Sha256: afa1f0cb33ca9072f1d77d5c148e7695592e3a7c0f02850c64f00c2145f1d8f5

Contents?: true

Size: 483 Bytes

Versions: 8

Compression:

Stored size: 483 Bytes

Contents

module Analyst
  module Entities
    class Module < Entity

      include HasMethods

      handles_node :module

      def kind
        "Module"
      end

      def name
        name_entity.name
      end

      def full_name
        parent.full_name.empty? ? name : parent.full_name + '::' + name
      end

      private

      def name_entity
        @name_entity ||= process_node(name_node)
      end

      def name_node
        ast.children.first
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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