# File lib/gh.rb, line 25 def self.with(backend) if Hash === backend @options ||= {} @options, options = @options.merge(backend), @options backend = DefaultStack.build(@options) end if block_given? was, self.current = current, backend yield else backend end ensure @options = options if options self.current = was if was end