public Method

Module.option_writer(*keys)

There's no documentation for this item.

Source Code

# File scrubyt/utils/ruby_extensions.rb, line 18
def option_writer(*keys)
  keys.each do |key|
    define_method("#{key.to_s}=".to_sym) { |value|
      @options[key] = value
    }
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.