Module: Lev::Algorithm
- Defined in:
- lib/lev/algorithm.rb
Overview
ducktypo.blogspot.com/2010/08/why-inheritance-sucks.html
http://stackoverflow.com/a/1328093/1664216
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/lev/algorithm.rb', line 6 def self.included(base) base.extend(ClassMethods) base.class_eval do include Lev::RoutineNesting end end |
Instance Method Details
#call(*args, &block) ⇒ Object
13 14 15 16 17 |
# File 'lib/lev/algorithm.rb', line 13 def call(*args, &block) in_transaction do exec(*args, &block) end end |