Module: Renalware::BooleanHelper

Included in:
PD::AdequacyResultsComponent
Defined in:
app/helpers/renalware/boolean_helper.rb

Instance Method Summary collapse

Instance Method Details

#yes_no(bool) ⇒ Object



5
6
7
# File 'app/helpers/renalware/boolean_helper.rb', line 5

def yes_no(bool)
  bool ? "Yes" : "No"
end

#yes_no_if_set(bool) ⇒ Object



9
10
11
12
13
# File 'app/helpers/renalware/boolean_helper.rb', line 9

def yes_no_if_set(bool)
  return if bool.nil?

  yes_no(bool)
end