Method: Pkg::Config.instance_values
- Defined in:
- lib/packaging/config.rb
.instance_values ⇒ Object
Returns a hash with string keys that maps instance variable
names without "@"" to their corresponding values.
17 18 19 |
# File 'lib/packaging/config.rb', line 17 def instance_values Hash[instance_variables.map { |name| [name[1..-1], instance_variable_get(name)] }] end |