Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby2_keywords.rb

Instance Method Summary collapse

Instance Method Details

#ruby2_keywords_hash(hash) ⇒ Object

call-seq:

Hash.ruby2_keywords_hash(hash) -> new_hash

Duplicates a given hash and returns the new hash.



53
54
55
# File 'lib/ruby2_keywords.rb', line 53

def ruby2_keywords_hash(hash)
  hash.dup
end

#ruby2_keywords_hash?(hash) ⇒ Boolean

call-seq:

Hash.ruby2_keywords_hash?(hash) -> false

Returns false.

Returns:

  • (Boolean)


43
44
45
# File 'lib/ruby2_keywords.rb', line 43

def ruby2_keywords_hash?(hash)
  false
end