Method: Graphiti::Configuration#with_option
- Defined in:
- lib/graphiti/configuration.rb
#with_option(key, value) ⇒ Object
68 69 70 71 72 73 74 |
# File 'lib/graphiti/configuration.rb', line 68 def with_option(key, value) original = send(key) send(:"#{key}=", value) yield ensure send(:"#{key}=", original) end |