Sha256: 75089af367c0d702638b452e8785a5d5e098174780d5d884d5a60fb50e88beb3

Contents?: true

Size: 1.15 KB

Versions: 8

Compression:

Stored size: 1.15 KB

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

# (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.

module Lorj
  # Specific ALL Ruby functions, but incompatible with some other version.
  module ObjectDataRubySpec
    # Public functions
    module Public
      # Functions used to set simple data/Object for controller/process function
      # call.
      # TODO: to revisit this function, as we may consider simple data, as
      # Lorj::Data object
      def []=(*key, value)
        return nil if [:object, :query].include?(key[0])
        @params.rh_set(value, key)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lorj-1.0.20 lib/core/compat/core_object_data.rb
lorj-1.0.19 lib/core/compat/core_object_data.rb
lorj-1.0.18 lib/core/compat/core_object_data.rb
lorj-1.0.17 lib/core/compat/core_object_data.rb
lorj-1.0.16 lib/core/compat/core_object_data.rb
lorj-1.0.14 lib/core/compat/core_object_data.rb
lorj-1.0.13 lib/core/compat/core_object_data.rb
lorj-1.0.12 lib/core/compat/core_object_data.rb