From: Jeremy Bopp Date: 2010-10-13T23:28:18+09:00 Subject: Re: Options in a class On 10/13/2010 9:16 AM, Paul Bergstrom wrote: > What about being able to pass different values to :color, like :color => > 'red or :color => 'blue'? How do I deal with that inside the module? module Abc def self.test(opts = {}) puts opts[:color] end end Abc.test(:color => 'red') # => red Abc.test(:color => 'blue') # => blue