Class: Array

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

Instance Method Summary collapse

Instance Method Details

#dottieObject

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



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

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

#dottie!Object

Adds Dottie’s behaviors to this Array.



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

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