File: branches.rb

package info (click to toggle)
ruby-simplecov 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: ruby: 5,550; makefile: 10
file content (13 lines) | stat: -rw-r--r-- 146 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Branches
  def call(arg)
    return if arg < 0

    arg == 42 ? :yes : :no

    if arg.odd?
      :yes
    else
      :no
    end
  end
end