Sha256: 3b3c62bec2b71634417685df435bb7a76a3a14dc91214c9a65cb355341f6e4a9

Contents?: true

Size: 398 Bytes

Versions: 10

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module Kanal
  module Core
    module Helpers
      # Generic parameter bag class that stores named parameters
      class ParameterBag
        def initialize
          @parameters = {}
        end

        def get(name)
          @parameters[name]
        end

        def set(name, value)
          @parameters[name] = value
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kanal-0.8.0 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.7.0 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.6.0 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.5.1 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.5.0 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.4.3 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.4.2 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.4.1 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.4.0 lib/kanal/core/helpers/parameter_bag.rb
kanal-0.3.0 lib/kanal/core/helpers/parameter_bag.rb