Module: GraphqlRails::ChainableOptions::ClassMethods
- Defined in:
- lib/graphql_rails/concerns/chainable_options.rb
Overview
nodoc
Instance Method Summary collapse
Instance Method Details
#chainable_option(option_name, default: nil) ⇒ Object
10 11 12 13 14 |
# File 'lib/graphql_rails/concerns/chainable_options.rb', line 10 def chainable_option(option_name, default: nil) define_method(option_name) do |value = NOT_SET| get_or_set_chainable_option(option_name, value, default: default) end end |