11
12
13
14
15
16
17
|
# File 'lib/search_object/plugin/enum.rb', line 11
def option(name, options = nil, &block)
return super unless options.is_a?(Hash) && options[:enum]
handler = options[:with] || block || Handler.build(name, options[:enum])
super(name, options, &handler)
end
|