Gistlib Logo

gistlib

other ruby categories

syntax code snippets in ruby

besides `%w[1 2 3]` what other methods or tricks exist that use % then some letter? in ruby
call a static property on an instance of a class in ruby
is this wrong? ` def ticket_price @age => 60 ? 10 : 15 end` in ruby
shorter way to do: `(cols[arr[0].to_sym].to_s + cols[arr[1].to_sym].to_s).to_i` ? in ruby

gistlibby LogSnag