Sha256: 6d19b025a72d5736e144ff21f3c85e0d8789acbe9a2a3978029b4e77340fa7b8

Contents?: true

Size: 168 Bytes

Versions: 8

Compression:

Stored size: 168 Bytes

Contents

module Helper
  class ToBool
    def self.execute(string)
      case string
      when "true"
        true
      when "false"
        false
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
epb_view_models-2.0.5 lib/helper/to_bool.rb
epb_view_models-2.0.4 lib/helper/to_bool.rb
epb_view_models-2.0.3 lib/helper/to_bool.rb
epb_view_models-2.0.2 lib/helper/to_bool.rb
epb_view_models-2.0.1 lib/helper/to_bool.rb
epb_view_models-2.0.0 lib/helper/to_bool.rb
epb_view_models-1.2.3 lib/helper/to_bool.rb
epb_view_models-1.2.2 lib/helper/to_bool.rb