Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/metahash/extensions/hash/to_metadata.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#to_metadata ⇒ Object
Returns a copy of self represented as a Metahash.
Instance Method Details
#to_metadata ⇒ Object
Returns a copy of self represented as a Metahash
m = { a: 1 }.to_metadata m.a # => 1
6 7 8 |
# File 'lib/metahash/extensions/hash/to_metadata.rb', line 6 def Metadata.new(self) end |