Sha256: dea32979481d48ef316a103585233fc9efebff2c83c8668592b739c9515d1b97
Contents?: true
Size: 360 Bytes
Versions: 39
Compression:
Stored size: 360 Bytes
Contents
class Reparameterize def self.call(params, list=false) return params.map{|state, param| param }.join(", ") if list params.map do |state, param| case state when :req param when :rest "*#{param}" when :opt "#{param}=nil" else param end end.join(", ") end end
Version data entries
39 entries across 39 versions & 1 rubygems