Method: Library#to_h

Defined in:
lib/library.rb

#to_hHash

Convert to hash.

Returns:

  • (Hash)

    The library metadata in a hash.



491
492
493
494
495
496
497
498
499
500
# File 'lib/library.rb', line 491

def to_h
  {
    :location     => location,
    :name         => name,
    :version      => version.to_s,
    :loadpath     => loadpath,
    :date         => date.to_s,
    :requirements => requirements
  }
end