Sha256: 60584cd075e8d59b19265227f51e0bf879bbff1404dc4c070329504ba9995fd0

Contents?: true

Size: 273 Bytes

Versions: 19

Compression:

Stored size: 273 Bytes

Contents

require_dependency "renalware"

module Renalware
  class CountryPresenter < SimpleDelegator
    def to_s
      no_country_if_uk(super)
    end

    private

    def no_country_if_uk(country)
      ["UK", "United Kingdom"].include?(country) ? "" : country
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/country_presenter.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/country_presenter.rb