Class: Object

Inherits:
BasicObject
Defined in:
lib/augmentations/object.rb

Overview

“Augmentations” plugin for Rails. By Henrik Nyh <henrik.nyh.se> under the MIT license for DanceJam <dancejam.com> 2008-09-10. See README for usage. By Henrik Nyh 2015-04-02 under the MIT license.

Class Method Summary collapse

Class Method Details

.augment(*mods, **opts) ⇒ Object



7
8
9
# File 'lib/augmentations/object.rb', line 7

def self.augment(*mods, **opts)
  mods.each { |mod| class_exec **opts, &mod.augmentation }
end