Sha256: 33be2c452a061344a61a8a731c477ef47d76b7736c5a6cd27830ca5f5a133d27
Contents?: true
Size: 643 Bytes
Versions: 3
Compression:
Stored size: 643 Bytes
Contents
module Analyst module Entities class Class < Entity include HasMethods handles_node :class alias :macros :method_calls def kind "Class" end def singleton_class_blocks contents.select { |entity| entity.is_a? Analyst::Entities::SingletonClass } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
analyst-1.0.1 | lib/analyst/entities/class.rb |
analyst-1.0.0 | lib/analyst/entities/class.rb |
analyst-0.16.1 | lib/analyst/entities/class.rb |