Skip to content

Instantly share code, notes, and snippets.

@chrislerum
Created May 16, 2010 07:41
Show Gist options
  • Save chrislerum/402745 to your computer and use it in GitHub Desktop.
Save chrislerum/402745 to your computer and use it in GitHub Desktop.
class ProductArray
#@array = Array Product.all.map {|product| product.id}
# hi = "aaaa"
def hi
"aaaa"
end
end
p= ProductArray.new
var = p.hi
puts var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment