Method: Nugrant::Config#to_h
- Defined in:
- lib/nugrant/config.rb
#to_h ⇒ Object Also known as: to_hash
183 184 185 186 187 |
# File 'lib/nugrant/config.rb', line 183 def to_h() Hash[instance_variables.map do |variable| [variable[1..-1].to_sym, instance_variable_get(variable)] end] end |