Class: Tapioca::Gem::NodeAdded

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

Direct Known Subclasses

ConstNodeAdded, MethodNodeAdded, ScopeNodeAdded

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbol, constant) ⇒ NodeAdded

Returns a new instance of NodeAdded.



70
71
72
73
74
# File 'lib/tapioca/gem/events.rb', line 70

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

Instance Attribute Details

#constantObject (readonly)

Returns the value of attribute constant.



67
68
69
# File 'lib/tapioca/gem/events.rb', line 67

def constant
  @constant
end

#symbolObject (readonly)

Returns the value of attribute symbol.



64
65
66
# File 'lib/tapioca/gem/events.rb', line 64

def symbol
  @symbol
end