Module: Clamp::Option::Declaration
- Defined in:
- lib/logstash/patches/clamp.rb
Instance Method Summary collapse
Instance Method Details
#deprecated_option(switches, type, description, opts = {}) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/logstash/patches/clamp.rb', line 20 def deprecated_option(switches, type, description, opts = {}) Option::Definition.new(switches, type, description, opts).tap do |option| << option block ||= option.default_conversion_block define_deprecated_accessors_for(option, opts, &block) end end |