Class: Faker::Bot::Reflector Abstract Private

Inherits:
Object
  • Object
show all
Defined in:
lib/faker/bot/reflector.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

This class is abstract.

Abstract ‘Faker` Reflector - introspects the `Faker` module

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReflector

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Reflector.



31
32
33
# File 'lib/faker/bot/reflector.rb', line 31

def initialize(*)
  @descendants_with_methods = Hash.new { |h, k| h[k] = [] }
end

Instance Attribute Details

#descendants_with_methodsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



29
30
31
# File 'lib/faker/bot/reflector.rb', line 29

def descendants_with_methods
  @descendants_with_methods
end