Class: Analyst::Entities::SingletonClass

Inherits:
Entity
  • Object
show all
Defined in:
lib/analyst/entities/singleton_class.rb

Instance Method Summary collapse

Instance Method Details

#full_nameObject



6
7
8
# File 'lib/analyst/entities/singleton_class.rb', line 6

def full_name
  parent.full_name + "!SINGLETON"
end

#nameObject



10
11
12
# File 'lib/analyst/entities/singleton_class.rb', line 10

def name
  parent.name + "!SINGLETON"
end

#smethodsObject



14
15
16
# File 'lib/analyst/entities/singleton_class.rb', line 14

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