Skip to content
Create a gist now

Instantly share code, notes, and snippets.

DEFAULT_OPTIONS.keys.each do |key|
define_method key do
return options[key.to_sym] unless options.nil?
end
define_method "#{key}=".to_sym do |value|
returning(options || {}) do |opt|
options[key.to_sym] = value
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.