Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/ruby2_keywords.rb
Instance Method Summary collapse
-
#ruby2_keywords_hash(hash) ⇒ Object
call-seq: Hash.ruby2_keywords_hash(hash) -> new_hash.
-
#ruby2_keywords_hash?(hash) ⇒ Boolean
call-seq: Hash.ruby2_keywords_hash?(hash) -> false.
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.
43 44 45 |
# File 'lib/ruby2_keywords.rb', line 43 def ruby2_keywords_hash?(hash) false end |