Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/carnivore/utils/smash.rb

Overview

Hook helper into toplevel `Hash`

Direct Known Subclasses

Carnivore::Utils::Smash

Instance Method Summary (collapse)

Instance Method Details

- (Smash) to_smash Also known as: hulk_smash

Convert to Smash

Returns:



83
84
85
# File 'lib/carnivore/utils/smash.rb', line 83

def to_smash
  ::Smash.new.replace(self)
end