Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/dottie/ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#dottieObject

Creates a new Dottie::Freckle that wraps this Hash.



6
7
8
# File 'lib/dottie/ext/hash.rb', line 6

def dottie
  Dottie::Freckle.new(self)
end

#dottie!Object

Adds Dottie’s behaviors to this Hash.



13
14
15
# File 'lib/dottie/ext/hash.rb', line 13

def dottie!
  self.extend(Dottie::Methods)
end