Class: Tapioca::Gem::NodeAdded Abstract

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

Overview

This class is abstract.

Direct Known Subclasses

ConstNodeAdded, MethodNodeAdded, ScopeNodeAdded

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbol, constant) ⇒ NodeAdded

: (String symbol, Module constant) -> void



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

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

Instance Attribute Details

#constantObject (readonly)

: Module



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

def constant
  @constant
end

#symbolObject (readonly)

: String



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

def symbol
  @symbol
end