Gistlib Logo

gistlib

other ruby categories

&:-operator code snippets in ruby

explain what "sum" does here and what is &: ` def self.value(colors) colors.first(2).sum('', &color_rules).to_i end` in ruby

gistlibby LogSnag