Class: Tapioca::Gem::ForeignConstantFound
- Inherits:
-
ConstantFound
- Object
- Event
- ConstantFound
- Tapioca::Gem::ForeignConstantFound
- Extended by:
- T::Sig
- Defined in:
- lib/tapioca/gem/events.rb
Instance Attribute Summary
Attributes inherited from ConstantFound
Instance Method Summary collapse
-
#constant ⇒ Object
: -> T::Module.
-
#initialize(symbol, constant) ⇒ ForeignConstantFound
constructor
: (String symbol, T::Module constant) -> void.
Constructor Details
#initialize(symbol, constant) ⇒ ForeignConstantFound
: (String symbol, T::Module constant) -> void
53 54 55 |
# File 'lib/tapioca/gem/events.rb', line 53 def initialize(symbol, constant) super end |
Instance Method Details
#constant ⇒ Object
: -> T::Module
48 49 50 |
# File 'lib/tapioca/gem/events.rb', line 48 def constant T.cast(@constant, T::Module[T.anything]) end |