Method: Primer::Classify::Utilities.hash_to_args
- Defined in:
- lib/primer/classify/utilities.rb
.hash_to_args(hash) ⇒ Object
130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/primer/classify/utilities.rb', line 130 def hash_to_args(hash) hash.map do |key, value| val = case value when Symbol ":#{value}" when String value.to_json else value end "#{key}: #{val}" end.join(", ") end |