Class: Tapioca::Gem::ConstantFound

Inherits:
Event
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/tapioca/gem/events.rb

Direct Known Subclasses

ForeignConstantFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbol, constant) ⇒ ConstantFound

Returns a new instance of ConstantFound.



36
37
38
39
40
# File 'lib/tapioca/gem/events.rb', line 36

def initialize(symbol, constant)
  super()
  @symbol = symbol
  @constant = constant
end

Instance Attribute Details

#constantObject (readonly)

Returns the value of attribute constant.



33
34
35
# File 'lib/tapioca/gem/events.rb', line 33

def constant
  @constant
end

#symbolObject (readonly)

Returns the value of attribute symbol.



30
31
32
# File 'lib/tapioca/gem/events.rb', line 30

def symbol
  @symbol
end