Class: Tapioca::Gem::ConstantFound

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbol, constant) ⇒ ConstantFound

Returns a new instance of ConstantFound.



38
39
40
41
42
# File 'lib/tapioca/gem/events.rb', line 38

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

Instance Attribute Details

#constantObject (readonly)

Returns the value of attribute constant.



35
36
37
# File 'lib/tapioca/gem/events.rb', line 35

def constant
  @constant
end

#symbolObject (readonly)

Returns the value of attribute symbol.



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

def symbol
  @symbol
end