Skip to content
  • Sean Doyle's avatar
    9e64b13d
    Yield instance to `Object#with` block · 9e64b13d
    Sean Doyle authored
    The introduction of the block argument means that `Object#with` can now
    accept a `Symbol#to_proc` as the block argument:
    
    ```ruby
    client.with(timeout: 5_000) do |c|
      c.get("/commits")
    end
    ```
    9e64b13d
    Yield instance to `Object#with` block
    Sean Doyle authored
    The introduction of the block argument means that `Object#with` can now
    accept a `Symbol#to_proc` as the block argument:
    
    ```ruby
    client.with(timeout: 5_000) do |c|
      c.get("/commits")
    end
    ```
Loading