Class: Module

Inherits:
Object show all
Defined in:
lib/tagen/core/module.rb

Instance Method Summary collapse

Instance Method Details

#constsHash

return hash instead of names

Returns:

See Also:

  • constants


6
7
8
9
10
# File 'lib/tagen/core/module.rb', line 6

def consts
  constants.each.with_object ({}) do |k,m|
    m[k] = const_get(k)
  end
end