Sha256: 1ce66f95c1577260ad4f84f6b65f09937618f96ebd3bd65323ca4d2e20cc4cfb

Contents?: true

Size: 485 Bytes

Versions: 52

Compression:

Stored size: 485 Bytes

Contents

# Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
class Object
  class << self
    def set_const(name, val)
      send(:remove_const, name) if const_defined?(name)
      send(:const_set, name, val)
    end
  end

  def set_const(name, val)
    send(:remove_const, name) if const_defined?(name)
    send(:const_set, name, val)
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
gooddata-2.1.0-java lib/gooddata/extensions/object.rb
gooddata-2.1.0 lib/gooddata/extensions/object.rb
gooddata-2.0.1-java lib/gooddata/extensions/object.rb
gooddata-2.0.1 lib/gooddata/extensions/object.rb
gooddata-2.0.0-java lib/gooddata/extensions/object.rb
gooddata-2.0.0 lib/gooddata/extensions/object.rb
gooddata-1.3.6-java lib/gooddata/extensions/object.rb
gooddata-1.3.6 lib/gooddata/extensions/object.rb
gooddata-1.3.5-java lib/gooddata/extensions/object.rb
gooddata-1.3.5 lib/gooddata/extensions/object.rb
gooddata-1.3.4-java lib/gooddata/extensions/object.rb
gooddata-1.3.4 lib/gooddata/extensions/object.rb