Sha256: ede8409093a9c8354aed536e0a12a2ed73e91ded2d6812184eb12580c01a1dd3

Contents?: true

Size: 1.08 KB

Versions: 52

Compression:

Stored size: 1.08 KB

Contents

class Module
  unless private_method_defined?(:ruby2_keywords)
    private
    # call-seq:
    #    ruby2_keywords(method_name, ...)
    #
    # Does nothing.
    def ruby2_keywords(name, *)
      # nil
    end
  end
end

main = TOPLEVEL_BINDING.receiver
unless main.respond_to?(:ruby2_keywords, true)
  # call-seq:
  #    ruby2_keywords(method_name, ...)
  #
  # Does nothing.
  def main.ruby2_keywords(name, *)
    # nil
  end
end

class Proc
  unless method_defined?(:ruby2_keywords)
    # call-seq:
    #    proc.ruby2_keywords -> proc
    #
    # Does nothing and just returns the receiver.
    def ruby2_keywords
      self
    end
  end
end

class << Hash
  unless method_defined?(:ruby2_keywords_hash?)
    # call-seq:
    #    Hash.ruby2_keywords_hash?(hash) -> false
    #
    # Returns false.
    def ruby2_keywords_hash?(hash)
      false
    end
  end

  unless method_defined?(:ruby2_keywords_hash)
    # call-seq:
    #    Hash.ruby2_keywords_hash(hash) -> new_hash
    #
    # Duplicates a given hash and returns the new hash.
    def ruby2_keywords_hash(hash)
      hash.dup
    end
  end
end

Version data entries

52 entries across 50 versions & 6 rubygems

Version Path
shopify-cli-2.36.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.35.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.34.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.33.1 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.33.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.32.1 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.32.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.31.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.30.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.29.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.28.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.27.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.26.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.25.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.24.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.23.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.22.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.21.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.20.1 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb
shopify-cli-2.20.0 vendor/deps/ruby2_keywords/lib/ruby2_keywords.rb