Module: Tapioca::Compilers::SymbolTable::SymbolLoader

Extended by:
T::Sig
Defined in:
lib/tapioca/compilers/symbol_table/symbol_loader.rb

Defined Under Namespace

Classes: SymbolTableParser

Class Method Summary collapse

Class Method Details

.ignore_symbol?(symbol) ⇒ Boolean

Returns:

  • (Boolean)

19
20
21
22
# File 'lib/tapioca/compilers/symbol_table/symbol_loader.rb', line 19

def ignore_symbol?(symbol)
  symbol = symbol[2..-1] if symbol.start_with?("::")
  ignored_symbols.include?(symbol)
end

.list_from_paths(paths) ⇒ Object


15
16
17
# File 'lib/tapioca/compilers/symbol_table/symbol_loader.rb', line 15

def list_from_paths(paths)
  load_symbols(paths.map(&:to_s))
end