gistlib
other ruby categories
coding-style code snippets in ruby
fix: `def conv(n) res = ''; nums = [3, 5, 7]; sounds = ['pling', 'plang', 'plong'] nums.length.times do |i| if n % nums[i] == 0 res << sounds[i] else res.empty? ? n.to_s : res end end end` in ruby
gistlib
by LogSnag