Class: Faker::Bot::Reflector Abstract Private
- Inherits:
-
Object
- Object
- Faker::Bot::Reflector
- 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.
‘Faker::Base` Reflection object
-
Introspects the ‘Faker::Base` class and it’s descendants
Direct Known Subclasses
Faker::Bot::Reflectors::List, Faker::Bot::Reflectors::Search
Instance Attribute Summary collapse
-
#descendants_with_methods ⇒ Hash[Class => [Array<Symbol>]]
readonly
private
Hash[Class => [Array<Symbol>]].
Class Method Summary collapse
-
.call(*args) ⇒ Object
Alternate constructor.
Instance Method Summary collapse
-
#initialize ⇒ Reflector
constructor
Initialize the reflector.
Constructor Details
#initialize ⇒ Reflector
Initialize the reflector
64 65 66 |
# File 'lib/faker/bot/reflector.rb', line 64 def initialize(*) @descendants_with_methods = Hash.new { |h, k| h[k] = [] } end |
Instance Attribute Details
#descendants_with_methods ⇒ Hash[Class => [Array<Symbol>]] (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.
Returns Hash[Class => [Array<Symbol>]].
47 48 49 |
# File 'lib/faker/bot/reflector.rb', line 47 def descendants_with_methods @descendants_with_methods end |
Class Method Details
.call(*args) ⇒ Object
Alternate constructor
56 57 58 |
# File 'lib/faker/bot/reflector.rb', line 56 def self.call(*args) new(*args).call end |