Module: CodeReviewLeaderboard::Spinner

Extended by:
Spinner
Included in:
Spinner
Defined in:
lib/code_review_leaderboard/spinner.rb

Instance Method Summary collapse

Instance Method Details

#startObject



9
10
11
12
13
14
15
16
17
# File 'lib/code_review_leaderboard/spinner.rb', line 9

def start
  result = nil

  Whirly.start(spinner: "dots", stop: "") do
    result = yield
  end

  result
end