> Hi,
>
> I want to store 6 palettes with color information.
>
Would this make sense?
module Palettes
DARK_PALETTE = {
:background => "323232",
:header => "4d4c4d" }
end
Then just:
require 'palettes'
puts Palettes::DARK_PALETTE
I does the trick. I'd like to know it this is a good approach.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment