Sha256: e8c093e14d64100a158789d9fb9b1c7db719a8daaa5136a57495c60c4f762208

Contents?: true

Size: 410 Bytes

Versions: 5

Compression:

Stored size: 410 Bytes

Contents

module Prefab
  module ConfigHelper
    def value_of(config_value)
      case config_value.type
      when :string
        config_value.string
      when :int
        config_value.int
      when :double
        config_value.double
      when :bool
        config_value.bool
      when :feature_flag
        config_value.feature_flag
      when :segment
        config_value.segment
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prefab-cloud-ruby-0.11.0 lib/prefab/config_helper.rb
prefab-cloud-ruby-0.10.0 lib/prefab/config_helper.rb
prefab-cloud-ruby-0.9.0 lib/prefab/config_helper.rb
prefab-cloud-ruby-0.8.0 lib/prefab/config_helper.rb
prefab-cloud-ruby-0.7.0 lib/prefab/config_helper.rb