Method: YARD::Registry.load!

Defined in:
lib/yard/registry.rb

.load!(file = yardoc_file) ⇒ Registry

Loads a yardoc file and forces all objects cached on disk into memory. Equivalent to calling load_yardoc followed by load_all

Parameters:

  • file (String) (defaults to: yardoc_file)

    the yardoc file to load

Returns:

  • (Registry)

    the registry object (for chaining)

See Also:

  • #load_yardoc
  • #load_all

Since:

  • 0.5.1



144
145
146
147
148
# File 'lib/yard/registry.rb', line 144

def load!(file = yardoc_file)
  clear
  thread_local_store.load!(file)
  self
end