Sha256: f0f4d28e70bb242a4e84cb9184d97c4e6660db4a0c38c7ee06d99cee49a308b1

Contents?: true

Size: 170 Bytes

Versions: 25

Compression:

Stored size: 170 Bytes

Contents

# frozen_string_literal: true

# Converts string into boolean
class BoolConverter
  def convert(string)
    return nil if string == 'nil'

    string == 'true'
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rast-1.0.0 lib/rast/converters/bool_converter.rb
rast-0.19.1 lib/rast/converters/bool_converter.rb
rast-0.19.0 lib/rast/converters/bool_converter.rb
rast-0.18.0 lib/rast/converters/bool_converter.rb
rast-0.15.1 lib/rast/converters/bool_converter.rb
rast-0.14.0 lib/rast/converters/bool_converter.rb
rast-0.11.4 lib/rast/converters/bool_converter.rb
rast-0.11.3 lib/rast/converters/bool_converter.rb
rast-0.11.1 lib/rast/converters/bool_converter.rb
rast-0.11.0 lib/rast/converters/bool_converter.rb
rast-0.10.0 lib/rast/converters/bool_converter.rb
rast-0.9.0 lib/rast/converters/bool_converter.rb
rast-0.9.0.pre lib/rast/converters/bool_converter.rb
rast-0.8.1.pre lib/rast/converters/bool_converter.rb
rast-0.8.0.pre lib/rast/converters/bool_converter.rb
rast-0.6.2.pre lib/rast/converters/bool_converter.rb
rast-0.6.1.pre lib/rast/converters/bool_converter.rb
rast-0.6.0.pre lib/rast/converters/bool_converter.rb
rast-0.4.2.pre lib/rast/converters/bool_converter.rb
rast-0.4.1.pre lib/rast/converters/bool_converter.rb